void Update() { if (Time.timeScale != 0.0f) { if (Input.GetKey(KeyCode.Space)) { Time.timeScale = 5.0f; } else { Time.timeScale = 1.0f; } } if (m_state != null) { if (Input.GetKeyDown(KeyCode.Escape)) { m_state.BackButtonPressed(); } m_state.Update(); return; } }