Exemplo n.º 1
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.");
    }
Exemplo n.º 2
0
 public void OpenLinkPopup(string textId, Utils.Link link, string textAtBeggining, string textAtEnd) //Opens a panel that opens the link if accepted
 {
     LinkPopup.SetActive(true);
     LinkPopupText.id = textId;
     LinkPopupText.additionalTextToAddAtTheBegginingOfTheText = textAtBeggining;
     LinkPopupText.additionalTextToAddAtTheEndOfTheText       = textAtEnd;
     LinkPopupText.Localize();
     currentLink = link;
 }
Exemplo n.º 3
0
 public void DeclineOpenCurrentLink()
 {
     currentLink = Utils.Link.None;
     LinkPopup.SetActive(false);
 }
Exemplo n.º 4
0
 public void AcceptOpenCurrentLink()
 {
     Utils.OpenExternalPredefinedLink(currentLink);
     currentLink = Utils.Link.None;
     LinkPopup.SetActive(false);
 }