/// <summary> /// 进入状态 /// </summary> public override void Enter() { base.Enter(); npcFsm = (NpcFSM)Machine; myNpcId = npcFsm.GetVar <int>("mynpcId"); //myNpcData = }
public override void Enter() { base.Enter(); npcFsm = (NpcFSM)Machine; mynpcId = npcFsm.GetVar <long>("mynpcId"); myNpcData = npcDataMgr.GetNpcData(mynpcId.value); myNpcData.npcState = NpcState.Idle; }
public override void Enter() { base.Enter(); npcFsm = (NpcFSM)Machine; }
public override void Initialize() { base.Initialize(); npcFsm = (NpcFSM)Machine; }