Beispiel #1
0
    void OnParticleCollision(GameObject other)
    {
        Tower tower = other.GetComponentInParent <Tower>();

        DecreaseEnemyHealth(tower.damageDealt);
        IsEnemyDead();

        if (tower != affectedBy)
        {
            tower.AdditionalEffect(this);
        }
    }