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 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; }
public void DeclineOpenCurrentLink() { currentLink = Utils.Link.None; LinkPopup.SetActive(false); }
public void AcceptOpenCurrentLink() { Utils.OpenExternalPredefinedLink(currentLink); currentLink = Utils.Link.None; LinkPopup.SetActive(false); }