示例#1
0
 public void SetLabelTextToReturnToMenu(TranslatedText label)
 {
     if ((label != null) && (string.IsNullOrEmpty(returnToTextTemplateTranslationKey) == false))
     {
         label.SetTranslationKey(returnToTextTemplateTranslationKey, TransitionManager.MainMenu.DisplayName);
     }
 }
示例#2
0
 void SetLabelTextTo(TranslatedText label, string templateKey)
 {
     if ((label != null) && (string.IsNullOrEmpty(templateKey) == false))
     {
         SceneInfo currentScene = TransitionManager.CurrentScene;
         if (currentScene != null)
         {
             label.SetTranslationKey(templateKey, currentScene.DisplayName);
         }
     }
 }
示例#3
0
 public void SetLabelTextToNextScene(TranslatedText label)
 {
     SetLabelTextTo(label, nextTextTemplateTranslationKey);
 }
示例#4
0
 public void SetLabelTextToFailedCurrentScene(TranslatedText label)
 {
     SetLabelTextTo(label, failedTextTemplateTranslationKey);
 }
示例#5
0
 public void SetLabelTextToCompletedCurrentScene(TranslatedText label)
 {
     SetLabelTextTo(label, completeTextTemplateTranslationKey);
 }
示例#6
0
 public void SetLabelTextToRestartCurrentScene(TranslatedText label)
 {
     SetLabelTextTo(label, restartTextTemplateTranslationKey);
 }