Exemple #1
0
        public override void StateBegin()
        {
            UnityEngine.Debug.Log("MainMenuScene scene StateBegin");

            YSView <Button> button = YSView <Button> .Create("StartGameBtn");

            button.OnClick(v =>
            {
                SceneStateController.SetState(new BattleState());
            });
        }
Exemple #2
0
        void Awake()
        {
            Log("Awake End");

            if (!isInit)
            {
                Log("Init Start");

                isInit = true;

                InitSetting();
                InitSubSystem();
                BaseSceneState init = BaseSceneState.Create <InitScene>(sceneStateController);
                sceneStateController.SetState(init);

                Log("Init End");
            }

            Log("Awake End");
        }
 public override void StateUpdate()
 {
     SceneStateController.SetState(Create <MainMenuScene>(SceneStateController));
 }