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