示例#1
0
    private void WhenTheGameIsPaused(IGameIsPaused args)
    {
        if (args.IsPaused && !InTheMenu)
        {
            SwitchBetweenGameAndMenu();
            _wasInGame = true;
            return;
        }

        if (!args.IsPaused && _wasInGame)
        {
            SwitchBetweenGameAndMenu();
            _wasInGame = false;
        }
    }
示例#2
0
 private void SaveGameIsPaused(IGameIsPaused args) => _uiInputEvents.GamePausedStatus(GameIsPaused);
示例#3
0
 private void SetIfGamePaused(IGameIsPaused args) => GamePaused = args.IsPaused;