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