Example #1
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Escape))
     {
         _pauseSignal.Fire();
     }
     else if (Input.GetKeyDown(KeyCode.Q))
     {
         ChangeState(_startState, false);
     }
 }
Example #2
0
 public void Unpause()
 {
     _pauseSignal.Fire();
 }
 private void enterPaused()
 {
     Debug.Log("enter pause");
     Time.timeScale = 0;
     _pauseSignal.Fire();
 }