コード例 #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;
        }
コード例 #2
0
        protected override void Init()
        {
            base.Init();

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