public void Awake() { Logger.LogWarp.Log("GameApp Awake"); FSMState stateUpdate = new StateUpdate("Update", gameFSMMachine); FSMState stateLogin = new StateLogin("Login", gameFSMMachine); FSMState stateHome = new StateHome("Home", gameFSMMachine); gameFSMMachine.AddState(stateUpdate); gameFSMMachine.AddState(stateLogin); gameFSMMachine.AddState(stateHome); gameFSMMachine.SetDefaultState("Update"); }
public void Launch() { m_ResLoader = new ResourceLoader(); m_UIManager = CreateSystem <UIManager>(); m_InputSystem = InputSystem.Instance; m_SceneFSM = new FSMMachine(); m_SceneFSM.AddState(new StartScene()); m_SceneFSM.AddState(new FightingScene()); m_SceneFSM.SetDefaultState(SceneDefines.SCENE_START); GameCamera.Instance.Camera = Camera.main; }