public override void StateBegin() { UnityEngine.Debug.Log("MainMenuScene scene StateBegin"); YSView <Button> button = YSView <Button> .Create("StartGameBtn"); button.OnClick(v => { SceneStateController.SetState(new BattleState()); }); }
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)); }