Example #1
0
 public void Unpause(float fade_time = 0)
 {
     startTimeScale = Time.timeScale;
     goalTimeScale  = 1;
     fadeTime       = fade_time;
     fadeBase       = fade_time;
     master         = this;
 }
Example #2
0
 public void Restart()
 {
     master         = this;
     startTimeScale = 1;
     goalTimeScale  = 1;
     fadeTime       = 0;
     fadeBase       = 0;
     SceneManager.LoadScene(SceneManager.GetActiveScene().name);
 }