예제 #1
0
    private void showGate()
    {
        IContentInterruption contentInterruption = new ParentGate();

        contentInterruption.OnReturn   += onGateFailed;
        contentInterruption.OnContinue += onGatePassed;
        contentInterruption.Show(base.transform);
    }
 private void onClicked()
 {
     if (Service.Get <CommerceService>().MatchCurrentVendor(subscriptionData.SubscriptionVendor))
     {
         gate.Show(base.transform);
     }
     else
     {
         Service.Get <PromptManager>().ShowPrompt(MembershipDifferentPlatform.Id, null);
     }
 }
예제 #3
0
 private void onMembershipExpiringPromptButtonClicked(DPrompt.ButtonFlags flags)
 {
     if (flags == DPrompt.ButtonFlags.OK)
     {
         gate.Show();
         Service.Get <ICPSwrveService>().Action("game.google_account_hold_prompt", "update", subscriptionVendor.ToLower());
     }
     else
     {
         Service.Get <ICPSwrveService>().Action("game.google_account_hold_prompt", "close");
     }
 }
예제 #4
0
    public void FacebookLogin()
    {
        if (build.parentGate && parentGate != null)
        {
            parentGate.Show(() =>
            {
                ui.LoadingShow();
                server.CheckConnection(isConnection =>
                {
                    if (!isConnection)
                    {
                        ui.LoadingHide();
                        return;
                    }

#if FACEBOOK
                    StartCoroutine(FacebookLoginCoroutine());
#endif
                });
            });

            return;
        }

        ui.LoadingShow();
        server.CheckConnection(isConnection =>
        {
            if (!isConnection)
            {
                ui.LoadingHide();
                return;
            }

#if FACEBOOK
            StartCoroutine(FacebookLoginCoroutine());
#endif
        });
    }