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