Ejemplo n.º 1
0
 public static void SetLabelTextTo(TranslatedTextMeshPro label, string templateKey, SceneInfo scene)
 {
     if ((label != null) && (string.IsNullOrEmpty(templateKey) == false) && (scene != null))
     {
         label.SetTranslationKey(templateKey, scene.DisplayName);
     }
 }
Ejemplo n.º 2
0
 public static void SetLabelTextTo(TranslatedTextMeshPro label, string templateKey, SceneTransitionManager manager)
 {
     if ((label != null) && (string.IsNullOrEmpty(templateKey) == false) && (manager != null))
     {
         SetLabelTextTo(label, templateKey, manager.CurrentScene);
     }
 }
Ejemplo n.º 3
0
 public void SetLabelTextToReturnToMenu(TranslatedTextMeshPro label)
 {
     if ((label != null) && (string.IsNullOrEmpty(returnToTextTemplateTranslationKey) == false))
     {
         label.SetTranslationKey(returnToTextTemplateTranslationKey, SceneChanger.MainMenu.DisplayName);
     }
 }
Ejemplo n.º 4
0
 public void SetLabelTextToFailedCurrentScene(TranslatedTextMeshPro label)
 {
     SetLabelTextTo(label, failedTextTemplateTranslationKey, SceneChanger);
 }
Ejemplo n.º 5
0
 public void SetLabelTextToRestartCurrentScene(TranslatedTextMeshPro label)
 {
     SetLabelTextTo(label, restartTextTemplateTranslationKey, SceneChanger);
 }