public void Awake() { Debug.Log("Initializing a new GUIManager."); // Cada nuevo GUI manager destruye el anterior para facilitar la creación de modos nuevos instance = this; GoBackButton.SetActive(false); RandomCard.SetActive(false); OpenConfigMenuButton.SetActive(true); GeneralConfMenu.SetActive(false); ConfLang.SetActive(false); ConfTypeSentences.SetActive(false); ConfNivelPicante.SetActive(false); ConfCustomSentences.SetActive(false); ConfPlayers.SetActive(false); WarningPopup.SetActive(false); InfoPopup.SetActive(false); LinkPopup.SetActive(false); ConditionPopup.SetActive(false); ConfMiscelanea.SetActive(false); rateAppPopup.SetActive(false); Debug.Log("GUIManager initialization successful."); }
public void OpenInfoPopup(string textId, string textAtBeggining, string textAtEnd) //Show text on the screen { InfoPopup.SetActive(true); InfoPopupText.id = textId; InfoPopupText.additionalTextToAddAtTheBegginingOfTheText = textAtBeggining; InfoPopupText.additionalTextToAddAtTheEndOfTheText = textAtEnd; InfoPopupText.Localize(); }