public override void Init(Creature creature) { base.Init(creature); MoveController = new NpcMoveController(Npc); BattleController = new NpcBattleController(Npc); }
public override void Release() { base.Release(); Projectile = null; if (MoveController != null) MoveController.Release(); MoveController = null; }
public override void Release() { base.Release(); if (MoveController != null) MoveController.Release(); MoveController = null; if (BattleController != null) BattleController.Release(); BattleController = null; }
public override void Init(Creature creature) { base.Init(creature); Projectile = (Projectile) creature; if (Projectile.TargetPosition != null) { MoveController = new NpcMoveController(creature); MoveController.MoveTo(Projectile.TargetPosition); } DieUts = Funcs.GetCurrentMilliseconds() + Projectile.Lifetime; }