void OnParticleCollision(GameObject other) { Tower tower = other.GetComponentInParent <Tower>(); DecreaseEnemyHealth(tower.damageDealt); IsEnemyDead(); if (tower != affectedBy) { tower.AdditionalEffect(this); } }
void OnParticleCollision(GameObject other) { Tower tower = other.GetComponentInParent <Tower>(); DecreaseEnemyHealth(tower.damageDealt); IsEnemyDead(); if (tower != affectedBy) { tower.AdditionalEffect(this); } }