Beispiel #1
0
 public override void Enter()
 {
     base.Enter();
     mynpcId    = npcFsm.GetVar <long>("mynpcId");
     targetId   = npcFsm.GetVar <long>("targetId");
     tokenNpcId = npcFsm.GetGlobalVar <long>("tokenNpcId");
 }
        public override void Enter()
        {
            base.Enter();
            mynpcId   = npcFsm.GetVar <long>("mynpcId");
            myNpcData = npcDataMgr.GetNpcData(mynpcId.value);

            targetId       = npcFsm.GetVar <long>("targetId");
            tokenNpcId     = npcFsm.GetGlobalVar <long>("tokenNpcId");
            isTakeNewToken = npcFsm.GetGlobalVar <bool>("isTakeNewToken");

            NpcAttack();
        }
Beispiel #3
0
        public override void Enter()
        {
            base.Enter();
            mynpcId  = npcFsm.GetVar <long>("mynpcId");
            targetId = npcFsm.GetVar <long>("targetId");

            myNpcData          = npcDataMgr.GetNpcData(mynpcId.value);
            myNpcData.npcState = NpcState.Attack;

            GLogger.Log(mynpcId.value + " enter Attack...");
            NpcSkillAttack();
        }
Beispiel #4
0
        public override void Enter()
        {
            base.Enter();

            mynpcId        = npcFsm.GetVar <long>("mynpcId");
            targetId       = npcFsm.GetVar <long>("targetId");
            targetId.value = 0;

            myNpcData          = npcDataMgr.GetNpcData(mynpcId.value);
            myNpcData.npcState = NpcState.Search;

            GLogger.Log(mynpcId.value + " enter Search...");
        }
Beispiel #5
0
    /// <summary>
    /// 进入状态
    /// </summary>
    public override void Enter()
    {
        base.Enter();
        npcFsm = (NpcFSM)Machine;

        myNpcId = npcFsm.GetVar <int>("mynpcId");
        //myNpcData =
    }
Beispiel #6
0
        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();
            mynpcId   = npcFsm.GetVar <long>("mynpcId");
            myNpcData = npcDataMgr.GetNpcData(mynpcId.value);
            GLogger.Red(mynpcId.value + " enter Death...");

            DoNpcDeath();
        }
Beispiel #8
0
    /// <summary>
    /// 进入状态
    /// </summary>
    public override void Enter()
    {
        base.Enter();

        myNpcId = npcFsm.GetVar <int>("myNpcId");

        var     npcMgr = ManagementCenter.GetManager <NpcManager>();
        NpcView npc    = npcMgr.GetNpc(myNpcId.value) as NpcView;

        npc.FindPath(myNpcId.value, GetEndPoint());
    }