public virtual void SetAttackTarget(BaseObject obj)
{
if (obj != null && !SelObj.CanPK(obj))
{
//对象不可攻击
TargetObj = null;
nState = BaseAI.STATE_IDLE;
return;
}
TargetObj = obj;
if (TargetObj == null)
{
nState = BaseAI.STATE_IDLE;
}
else
{
nState = BaseAI.ATTACK;
}
//mnLastAttackTick = System.Environment.TickCount;
//mnLastMoveTick = mnLastAttackTick;
if (findlist != null) findlist.Clear();
}