Example #1
0
 public void Cast(Transform user, List <Transform> targets)
 {
     if (SpellEffect != null)
     {
         IEffectTrigger spellEffectTrigger = SpellEffect.GetComponent <IEffectTrigger>();
         if (spellEffectTrigger != null)
         {
             spellEffectTrigger.TriggerEffect(user);
         }
     }
     if (TargetEffect != null)
     {
         IEffectTrigger targetEffectTrigger = TargetEffect.GetComponent <IEffectTrigger>();
         if (targetEffectTrigger != null)
         {
             foreach (var v in targets)
             {
                 targetEffectTrigger.TriggerEffect(v);
             }
         }
     }
     PhotonClientMgr
 }