public string GetText(string id, string lang, bool log = true) { GEText text = GetTextElement(id); if (text == null || text.IsEmpty()) { if (log) { ObjectManager.Logger.LogWarn("There is no GEText with the given id! " + id); //throw new Exception(String.Format("There is no text with the given id! id: {0}", id)); } return(null); } return(text.GetText(lang, log)); }
private void OnActivation() { if (!isActive) { return; } Description description = Description.GetInstance(); description.ClearDescription(); description.AddDescriptionText(endText.GetText()); GameController.GetInstance().ShowGameOver(gameOverText.GetText()); MenuItemBundle menuItemBundle = new MenuItemBundle("", null); menuItemBundle.AddMenuItem(new MIGameEnd("OK", null)); menuItemBundle.IsBlocker = true; description.IsBlocked = true; MenuController.GetInstance().CurrentBundle = menuItemBundle; }