Beispiel #1
0
    public void DamageCurrentTarget()
    {
        if (!currentTarget)
        {
            return;
        }

        Defender defender = currentTarget.GetComponent <Defender>();

        if (defender.GetHealth() > 0)
        {
            defender.DealDamage(damage);
        }
    }