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