Example #1
0
 public void OpenRateAppPopup()
 {
     Debug.Log("Opening rate app popup");
     rateAppPopup.SetActive(true);
     currentLink = Utils.GetLink("RATE");
     DataManager.instance.setRateAppPopupShown(true, false);
 }
Example #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;
 }
Example #3
0
 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.");
     }
 }
Example #4
0
 public void DeclineOpenCurrentLink()
 {
     currentLink = Utils.Link.None;
     LinkPopup.SetActive(false);
 }
Example #5
0
 public void AcceptOpenCurrentLink()
 {
     Utils.OpenExternalPredefinedLink(currentLink);
     currentLink = Utils.Link.None;
     LinkPopup.SetActive(false);
 }