Pause() public method

public Pause ( bool pause ) : void
pause bool
return void
示例#1
0
    public void Pause(bool pause)
    {
        _pauseTransition = !pause;
        if (_reactionEngine == null)
        {
            _reactionEngine = ReactionEngine.get();
        }
        _reactionEngine.Pause(pause);
        _timeScale = pause ? 0 : 1;
        if (pause)
        {
            Time.timeScale = 0;
        }

        roomGraph.setPause(pause);
        celliaGraph.setPause(pause);
        hero.Pause(pause);
        control.Pause(pause);
        EnemiesManager.Paused = pause;
    }