public void OnUnpauseGame() { Debug.Log("You pressed Unpause"); currentstate = pauseStates.NotPause; Time.timeScale = 1; paused = false; }
public void OnPauseGame() { Debug.Log("You pressed Pause"); currentstate = pauseStates.Pause; Time.timeScale = 0; paused = true; }
// Use this for initialization void Awake () { currentstate = pauseStates.NotPause; paused = false; Time.timeScale = 1; }
// Use this for initialization void Awake() { currentstate = pauseStates.NotPause; paused = false; Time.timeScale = 1; }