protected override void OnActive(bool active)
 {
     if (active)
     {
         StratusCursorLock.ReleaseLock();
     }
     else
     {
         StratusCursorLock.RevertLock();
     }
 }
 protected override void OnActive(bool active)
 {
     if (lockCursor)
     {
         if (active)
         {
             StratusCursorLock.LockCursor(CursorLockMode.Locked, false);
         }
         else
         {
             StratusCursorLock.LockCursor(CursorLockMode.None, true);
         }
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Locks the cursor using given arguments
 /// </summary>
 /// <param name="cursorLock"></param>
 public static void LockCursor(StratusCursorLock cursorLock)
 {
     LockCursor(cursorLock.mode, cursorLock.visible);
 }