Exemplo n.º 1
0
 public static void PauseGame(EPauseFrom from)
 {
     Debug.Log("PauseGame:" + from);
     SetPauseState(from, true);
     if (_stateFrom != EPauseFrom.None)
     {
         TimeScaleManager.SetTimeScaleForPause(0f);
     }
 }
Exemplo n.º 2
0
    public static void DoContionueGame(EPauseFrom from)
    {
        Debug.Log("DoContionueGame:" + from + " " + _stateFrom);
        SetPauseState(from, false);

        if (_stateFrom == EPauseFrom.None)
        {
            TimeScaleManager.SetTimeScaleForPause(1);
        }
    }
Exemplo n.º 3
0
 public static void Revert()
 {
     _stateFrom = EPauseFrom.None;
     TimeScaleManager.SetTimeScaleForPause(1);
 }