Skip to content

Commit

Permalink
Game: Use pattern matching
Browse files Browse the repository at this point in the history
  • Loading branch information
Emik03 committed May 19, 2021
1 parent 383bbae commit 8134dec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/Statics/Game.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Player = Assets.Scripts.Settings.PlayerSettingsManager;
using InputManager = KTInputManager;
using Manager = ModManager;
Expand Down Expand Up @@ -83,7 +82,7 @@ public static class KTInputManager
/// <summary>
/// Determines if the current way the game is being controlled is VR-related.
/// </summary>
public static bool IsCurrentControlTypeVR => CurrentControlType == ControlType.Gaze || CurrentControlType == ControlType.Motion || CurrentControlType == ControlType.ThreeDOF;
public static bool IsCurrentControlTypeVR => CurrentControlType is ControlType.Gaze or ControlType.Motion or ControlType.ThreeDOF;

/// <summary>
/// The current way the game is being controlled.
Expand Down

0 comments on commit 8134dec

Please sign in to comment.