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