void HandleKeyboardInput() { // Pauses or plays game when player hits p if (PressedPause()) { Time.timeScale = IsPaused() ? 1 : 0; UIEvents.Pause(); } }
// Start a new single player game public void StartSinglePlayer() { AudioController.PlayClick(); SceneEvents.ChangeScene("SinglePlayer"); UIEvents.StartGame(); }
// Score a point for the given player void ScorePoint() { UIEvents.Score(player); }