Exemple #1
0
        private void Awake()
        {
            appStateMachine = new AppStateMachine();

            viewManager.Initialize();

            appStateMachine.Initialize(new State <AppStates>[] {
                new IntroState(appStateMachine, AppStates.Intro, viewManager),
                new GenerateState(appStateMachine, AppStates.Generate, viewManager, mazeManager),
            }, initialState);

            appStateMachine.OnStateChanged += OnStateChanged;
        }
        protected override void Init()
        {
            base.Init();

            this.DelayedCall(Delay, () => AppStateMachine.Fire(AppState.SceneLoading));
        }