/* Kills the unit. */ public override void Die() { if (PlayerAI.targetToAttack == transform) { PlayerAI.DeselectTarget(); } GetComponent <SteerableUnitComponent>().Stop(); GetComponent <UnitAnimator>().Die(); DisableComponents(); }