Method ApplyEffect
ApplyEffect(EffectDuration, Effect, TimeSpan)
Applies the specified effect to this game object.
public void ApplyEffect(EffectDuration durationType, Effect effect, TimeSpan duration = default)
Parameters
durationTypeEffectDurationThe duration type to apply with this effect.
effectEffectThe effect to apply.
durationTimeSpanIf duration type is Temporary, the duration of this effect.