예제 #1
0
 /// <summary>
 /// Event handler for when the Play Game menu entry is selected.
 /// </summary>
 void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex,
                        new GameplayScreen());
 }
예제 #2
0
 /// <summary>
 /// The "Exit" button handler uses the LoadingScreen to take the user out to the main menu.
 /// </summary>
 void exitButton_Tapped(object sender, EventArgs e)
 {
     LoadingScreen.Load(ScreenManager, false, null, new BackgroundScreen(),
                        new PhoneMainMenuScreen());
 }
예제 #3
0
 void playButton_Tapped(object sender, EventArgs e)
 {
     // When the "Play" button is tapped, we load the GameplayScreen
     LoadingScreen.Load(ScreenManager, true, PlayerIndex.One, new GameplayScreen());
 }