예제 #1
0
 public static bool HasStatusEffect <T>(this IEffectHolder holder) where T : StatusEffect
 {
     return(holder.GetStatusEffects().Any(statusEffect => statusEffect is T));
 }
예제 #2
0
 public static bool HasStatusEffect(this IEffectHolder holder, Func <StatusEffect, bool> match)
 {
     return(holder.GetStatusEffects().Any(match));
 }