Example #1
0
 private bool CanSwitchBetweenInGameAndMenu()
 {
     if (!_inputScheme.PressedMenuToGameSwitch())
     {
         return(false);
     }
     OnMenuAndGameSwitch?.Invoke(this);
     return(true);
 }
Example #2
0
 private bool CheckIfHotKeyAllowed()
 {
     if (GameIsPaused || !NoActivePopUps || MultiSelectPressed)
     {
         return(false);
     }
     if (!HasMatchingHotKey())
     {
         return(false);
     }
     if (!_inMenu)
     {
         OnMenuAndGameSwitch?.Invoke(this);
     }
     return(true);
 }