Beispiel #1
0
        void Start()
        {
            appMenu    = appCanvas.GetComponentInChildren <AppMenu>(includeInactive: true);
            appScreens = appCanvas.GetComponentsInChildren <AppScreen>(includeInactive: true);

            currentScreen = splashScreen;

            appMenu?.SetUpAnimations();
            backHeaderAnimation?.SetUp();
            appHeaderAnimation?.SetUp();
            appFooterAnimation?.SetUp();

            foreach (AppScreen appScreen in appScreens)
            {
                appScreen.SetUpAnimations();
                if (appScreen != splashScreen)
                {
                    appScreen.Deactivate();
                }
            }

            splashScreen.Show();
            navigationHistory.Push(currentScreen);

            CheckAppMenuAvailability();
        }
 void Awake()
 {
     appMenu = GetComponentInParent <AppMenu>();
     button  = GetComponent <Button>();
 }