/// <summary> /// 初始化游戏状态机 /// </summary> /// <returns></returns> public xc.Machine.State InitFSM() { m_GameMachine = new xc.Machine(); xc.Machine.State init_state = new xc.GameInitState(m_GameMachine); XLua.LuaFunction initFSMFunc = LuaScriptMgr.Instance.GetLuaFunction("Main_InitFSM"); if (initFSMFunc != null) { initFSMFunc.Call(m_GameMachine, init_state); } m_GameMachine.SetCurState(init_state); return(init_state); }
public GameInitState(xc.Machine machine, xc.Machine.State owner) : base((uint)GameState.GS_INIT, machine, owner) { Init(); }
public GameInitState(xc.Machine machine) : base((uint)GameState.GS_INIT, machine) { Init(); }