예제 #1
0
 public virtual void Init(BaseObject obj = null, int nAi_Id = Define.AI_TYPE_MELEE)
 {
     TargetObj          = null;
     SelObj             = obj;
     nState             = STATE_IDLE;
     mnLastAttackTick   = System.Environment.TickCount;
     mnLastMoveTick     = mnLastAttackTick;
     findlist           = null;
     mAiInfo            = ConfigManager.Instance().GetAIInfo(nAi_Id);
     mnActiveAttackTick = System.Environment.TickCount;
 }
예제 #2
0
 public virtual void Init(BaseObject obj = null, int nAi_Id = Define.AI_TYPE_MELEE)
 {
     TargetObj = null;
     SelObj = obj;
     nState = STATE_IDLE;
     mnLastAttackTick = System.Environment.TickCount;
     mnLastMoveTick = mnLastAttackTick;
     findlist = null;
     mAiInfo = ConfigManager.Instance().GetAIInfo(nAi_Id);
     mnActiveAttackTick = System.Environment.TickCount;
 }