public override void Reset() { MotorSystem.Stop(); MotorSystem = null; LastAttackTick = Environment.TickCount; LastMoveTick = Environment.TickCount; Target = null; MotorSystem = new Timer(); MotorSystem.Interval += mThinkSpeed; MotorSystem.Elapsed += new ElapsedEventHandler(MotorSystem_TakingDecision); if (mEntity.IsAlive()) { MotorSystem.Start(); } }
public override void Sleep() { MotorSystem.Stop(); Target = null; mEntity.TargetUID = -1; mEntity.IsInBattle = false; }