public void OpenConditionPopup(string textId, Utils.Condition condition) //Asks for something and saves the result { ConditionPopup.SetActive(true); ConditionPopupText.id = textId; ConditionPopupText.Localize(); currentCondition = condition; }
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 DeclineCurrentConditionPopup() { SavesManager.instance.SaveCondition(currentCondition, false); currentCondition = Utils.Condition.None; ConditionPopup.SetActive(false); }