public static void ApplyAreaEffect(List <Character> characters, Effects.BoolEffects effect, float duration) { foreach (Character c in characters) { EffectManager.effectManager.ApplyEffect(c, effect, duration); } }
public void ApplyCrowdControl(Character target, Effects.BoolEffects cc, float duration) { BoolEffect tempEffect = Instantiate(BoolEffectPrefab, target.transform); tempEffect.target = target; tempEffect.duration = duration; tempEffect.cc = cc; }