예제 #1
0
 // -------------------------------------------------------------------------------
 // ShowText
 // -------------------------------------------------------------------------------
 public void ShowText(DescriptionTemplate text)
 {
     if (text != null)
     {
         gameScreen.ShowError(text.getDescription);
     }
 }
예제 #2
0
 // -------------------------------------------------------------------------------
 // ShowError
 // Displays an error using the provided DescriptionTemplate
 // -------------------------------------------------------------------------------
 public void ShowError(DescriptionTemplate error)
 {
     if (error != null)
     {
         SoundController.Play(errorSound);
         gameScreen.ShowError(error.getDescription);
     }
 }