Example #1
0
        public static void PushVisible()
        {
            var pointerState = new PointerState {
                LockMode = CursorLockMode.None, Visible = true
            };

            pointerState.Apply();
            _pointerStateStack.Push(pointerState);
        }
Example #2
0
        public static void PushHidden()
        {
            var pointerState = new PointerState {
                LockMode = CursorLockMode.Locked, Visible = false
            };

            pointerState.Apply();
            _pointerStateStack.Push(pointerState);
        }
Example #3
0
 public static void ResetState()
 {
     _pointerStateStack.Clear();
     _defaultState.Apply();
 }