Beispiel #1
0
 public void OnPauseButtonTap()
 {
     game.Pause();
     alertView.SetTitle(Constant.Text.GamePaused);
     alertView.AddButton(Constant.Text.Resume, game.Resume, audioPlayer.PlayResumeClip);
     alertView.AddButton(Constant.Text.NewGame, game.Start, audioPlayer.PlayNewGameClip);
     alertView.Show();
 }
Beispiel #2
0
 void OnGameFinished()
 {
     alertView.SetTitle(Constant.Text.GameFinished);
     alertView.AddButton(Constant.Text.PlayAgain, game.Start, audioPlayer.PlayNewGameClip);
     alertView.Show();
 }