void ApplySlow(List <EnemyHealth> targets) { for (int i = 0; i < targets.Count; i++) { EnemyEffects target = targets[i].GetComponent <EnemyEffects>(); if (target) { target.Slow(effectDuration); } } }