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

        DisableComponents();
    }