public void OpenRateAppPopup() { Debug.Log("Opening rate app popup"); rateAppPopup.SetActive(true); currentLink = Utils.GetLink("RATE"); DataManager.instance.setRateAppPopupShown(true, false); }
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 DeclineOpenRateAppPopup() { if (currentLink == Utils.GetLink("RATE")) { currentLink = Utils.Link.None; rateAppPopup.SetActive(false); DataManager.instance.setRateAppPopupShown(true, false); } else { Debug.LogError("Declined to open the link to rate the app but another link was set as current. Maybe another link popup was activated causing the error."); } }
public void DeclineOpenCurrentLink() { currentLink = Utils.Link.None; LinkPopup.SetActive(false); }
public void AcceptOpenCurrentLink() { Utils.OpenExternalPredefinedLink(currentLink); currentLink = Utils.Link.None; LinkPopup.SetActive(false); }