public void SetLabelTextToReturnToMenu(TranslatedText label) { if ((label != null) && (string.IsNullOrEmpty(returnToTextTemplateTranslationKey) == false)) { label.SetTranslationKey(returnToTextTemplateTranslationKey, TransitionManager.MainMenu.DisplayName); } }
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); } } }
public void SetLabelTextToNextScene(TranslatedText label) { SetLabelTextTo(label, nextTextTemplateTranslationKey); }
public void SetLabelTextToFailedCurrentScene(TranslatedText label) { SetLabelTextTo(label, failedTextTemplateTranslationKey); }
public void SetLabelTextToCompletedCurrentScene(TranslatedText label) { SetLabelTextTo(label, completeTextTemplateTranslationKey); }
public void SetLabelTextToRestartCurrentScene(TranslatedText label) { SetLabelTextTo(label, restartTextTemplateTranslationKey); }