private void PopulateAndTransitionInNextScreen() { ActiveScreen = NextScreen; NextScreen.PopulateScreenViews (); NextScreen.TransitionIn (); }
public void SetActiveScreen(Screen newScreen) { NextScreen = newScreen; if (ActiveScreen == null) { PopulateAndTransitionInNextScreen (); } else { ActiveScreen.OnTransitionedOut = HandleActiveScreenTransitionedOut; ActiveScreen.TransitionOut (); } }
private void HandleActiveScreenTransitionedOut(Screen screen) { ActiveScreen.UnloadContent (); PopulateAndTransitionInNextScreen (); }