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

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

            pointerState.Apply();
            _pointerStateStack.Push(pointerState);
        }
Exemplo n.º 3
0
 public static void ResetState()
 {
     _pointerStateStack.Clear();
     _defaultState.Apply();
 }