protected void Start() { XPromoConfig cfg = PersistentSingleton <Economies> .Instance.XPromo.Find((XPromoConfig c) => c.ID == m_xpromoApp); (from p in Observable.EveryApplicationPause().StartWith(value: false) where !p select p).Subscribe(delegate { // m_isInstalled = XPromoPlugin.CheckForExternalApp(cfg); }).AddTo(this); }
public void OnButton() { XPromoConfig cfg = PersistentSingleton <Economies> .Instance.XPromo.Find((XPromoConfig c) => c.ID == m_xpromoApp); if (m_isInstalled) { // XPromoPlugin.OpenAppOnDevice(cfg); } else { // XPromoPlugin.OpenAppPage(cfg); } }
public void OnButton() { XPromoConfig cfg = PersistentSingleton <Economies> .Instance.XPromo.Find((XPromoConfig c) => c.ID == m_xpromoApp); if (m_isInstalled) { // XPromoPlugin.OpenAppOnDevice(cfg); } else { m_popupManager.ShowInfo(); } Singleton <XPromoRunner> .Instance.SetNextApp(); }
private void ShowReivewPopup() { PlayerData instance = PlayerData.Instance; instance.ReviewState.Value = BaseData.ReviewStates.Reviewed; instance.HasReviewed.Value = true; if (NativeReview.iOSNativeReviewSupported()) { ShowFeedbackPopup.SetValueAndForceNotify(value: true); XPromoConfig cfg = PersistentSingleton <Economies> .Instance.XPromo.Find((XPromoConfig c) => c.ID == "CA"); // XPromoPlugin.OpenReview(cfg); } else { ShowReviewPopup.SetValueAndForceNotify(value: true); } }
public void OnShowReview() { XPromoConfig cfg = PersistentSingleton <Economies> .Instance.XPromo.Find((XPromoConfig c) => c.ID == "CA"); // XPromoPlugin.OpenReview(cfg); }