コード例 #1
0
 /// <summary>
 /// A callback method from the InfoBox class that gets rid of the current InfoBox
 /// </summary>
 private void InfoBoxCallback()
 {
     infoBox.Dispose();
     infoBox = null;
     isFrozen = false;
     StaticBGM.Paused = false;
 }
コード例 #2
0
 /// <summary>
 /// Creates an instance of the InfoBox class to pop up on the screen.
 /// </summary>
 /// <param name="input">The message to display.</param>
 /// <param name="pauseMusic">Whether or not to pause the music.</param>
 /// <param name="removable">Whether or not the user can manually remove the box.</param>
 private void DisplayInfoBox(string input, bool pauseMusic, bool removable)
 {
     //gameHUD.DisplayInfo(input);
     infoBox = new InfoBox(input, InfoBoxCallback, removable);
     isFrozen = true;
     if (pauseMusic)
         StaticBGM.Paused = true;
 }