Exemplo n.º 1
0
    /// <summary>
    /// 进入状态
    /// </summary>
    public override void Enter()
    {
        base.Enter();
        npcFsm = (NpcFSM)Machine;

        myNpcId = npcFsm.GetVar <int>("mynpcId");
        //myNpcData =
    }
Exemplo n.º 2
0
        public override void Enter()
        {
            base.Enter();
            npcFsm = (NpcFSM)Machine;

            mynpcId            = npcFsm.GetVar <long>("mynpcId");
            myNpcData          = npcDataMgr.GetNpcData(mynpcId.value);
            myNpcData.npcState = NpcState.Idle;
        }
Exemplo n.º 3
0
 public override void Enter()
 {
     base.Enter();
     npcFsm = (NpcFSM)Machine;
 }
Exemplo n.º 4
0
 public override void Initialize()
 {
     base.Initialize();
     npcFsm = (NpcFSM)Machine;
 }