public IEnumerator AttemptDetailView(Action successHandler) { if (ITTDataCache.Instance.HasSessionCredentials) { if (null != successHandler) { successHandler(); } } else if (!ITTDataCache.Instance.HasSessionCredentials) { if (null != CurrentScreen) { IScreenViewBase screen = CurrentScreen as IScreenViewBase; if (null != screen) { StartCoroutine(screen.OnHide()); } } OnboardingViewController.Spawn(successHandler); StartCoroutine(OnboardingView.OnDisplay()); } yield break; }
public IEnumerator AttemptAuthenticatedStateChange(Enum desiredState) { if (ITTDataCache.Instance.HasSessionCredentials) { currentState = desiredState; } else if (!ITTDataCache.Instance.HasSessionCredentials) { bufferedState = desiredState; if (null != CurrentScreen) { IScreenViewBase screen = CurrentScreen as IScreenViewBase; if (null != screen) { StartCoroutine(screen.OnHide()); } } OnboardingViewController.Spawn(EnterBufferedState); StartCoroutine(OnboardingView.OnDisplay()); } yield break; }
public IEnumerator OnHide() { ITTGoogleAnalytics.Instance.googleAnalytics.LogEvent(new EventHitBuilder() .SetEventCategory("Registration - Registration Screen") .SetEventAction("Exit - Registration Screen") .SetEventLabel("User has exited the registration flow")); IScreenViewBase screen = ITTMainSceneManager.Instance.CurrentScreen as IScreenViewBase; if (null != screen) { StartCoroutine(screen.ForcedReverseIn()); } yield return(StartCoroutine(ForcedReverseOut())); }