Пример #1
0
 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;
 }
Пример #2
0
    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.");
    }
Пример #3
0
 public void DeclineCurrentConditionPopup()
 {
     SavesManager.instance.SaveCondition(currentCondition, false);
     currentCondition = Utils.Condition.None;
     ConditionPopup.SetActive(false);
 }