예제 #1
0
 private void showGate(IContentInterruption gate)
 {
     openContentInterruption = gate;
     gate.OnReturn          += HandleOnGateFailed;
     gate.OnContinue        += onGatePassed;
     gate.Show(parentTransform);
 }
예제 #2
0
 private void onConfirmClicked()
 {
     ToggleInteraction(isInteractable: false);
     gate             = new AgeGate();
     gate.OnReturn   += onGateFailed;
     gate.OnContinue += onGatePassed;
     gate.Show(base.transform);
     Service.Get <ICPSwrveService>().Funnel(Service.Get <MembershipService>().MembershipFunnelName, "02", "agegate_triggered");
 }
 private void onConfirmClicked()
 {
     ToggleInteraction(isInteractable: false);
     if (!Service.Get <SessionManager>().HasSession)
     {
         membershipService.LoginViaMembership = true;
         membershipController.MembershipLoginNeeded();
         Service.Get <ICPSwrveService>().NavigationAction("membership_buttons.OfferConfirm", "login_needed");
         return;
     }
     if (LogMembershipView)
     {
         string currentMembershipStatus = Service.Get <MembershipService>().GetCurrentMembershipStatus();
         Service.Get <ICPSwrveService>().Action("game.free_trial", MembershipViewTrigger, currentMembershipStatus, SceneManager.GetActiveScene().name);
     }
     gate             = new ParentGate();
     gate.OnReturn   += onGateFailed;
     gate.OnContinue += onGatePassed;
     gate.Show(base.transform);
     Service.Get <ICPSwrveService>().Funnel(Service.Get <MembershipService>().MembershipFunnelName, "02", "agegate_triggered");
     Service.Get <ICPSwrveService>().NavigationAction("membership_buttons.OfferConfirm", "trigger_agegate");
     base.gameObject.SetActive(value: false);
 }