예제 #1
0
 void ApplySpellEffects(SpellEffectCollection effects)
 {
     if (effects != null && ContextOwner != null && ContextOwner.activeInHierarchy)
     {
         Targets.FindTargets(effects.TargetSettings);
         foreach (var effect in effects)
         {
             effect.Apply(this);
         }
     }
 }