public void MoveToScreen(AppScreen nextScreen) { Sequence hideSequence = currentScreen.Hide(); previousScreen = currentScreen; Sequence showSequence = nextScreen.Show(); currentScreen = nextScreen; CheckAppMenuAvailability(showSequence, hideSequence); }
public void ReturnToPreviousScreen() { Sequence hideSequence = currentScreen.HideReversed(); currentScreen = previousScreen; Sequence showSequence = previousScreen.Show(); previousScreen = currentScreen.PreviousScreen; CheckAppMenuAvailability(showSequence, hideSequence); }
void Awake() { appMenu = GetComponentInChildren <AppMenu>(includeInactive: true); appScreens = GetComponentsInChildren <AppScreen>(includeInactive: true); currentScreen = homeScreen; appMenu.SetUpAnimations(); backHeaderAnimation.SetUp(); foreach (AppScreen appScreen in appScreens) { appScreen.SetUpAnimations(); if (appScreen != homeScreen) { appScreen.Deactivate(); } } }