示例#1
0
    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);
    }
示例#2
0
    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);
        }
    }
示例#3
0
    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();
    }
示例#4
0
    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);
        }
    }
示例#5
0
    public void OnShowReview()
    {
        XPromoConfig cfg = PersistentSingleton <Economies> .Instance.XPromo.Find((XPromoConfig c) => c.ID == "CA");

        // XPromoPlugin.OpenReview(cfg);
    }