private void WhenTheGameIsPaused(IGameIsPaused args) { if (args.IsPaused && !InTheMenu) { SwitchBetweenGameAndMenu(); _wasInGame = true; return; } if (!args.IsPaused && _wasInGame) { SwitchBetweenGameAndMenu(); _wasInGame = false; } }
private void SaveGameIsPaused(IGameIsPaused args) => _uiInputEvents.GamePausedStatus(GameIsPaused);
private void SetIfGamePaused(IGameIsPaused args) => GamePaused = args.IsPaused;