RemoveStatusEffect
Last updated
Last updated
public static void RemoveStatusEffect(StatusEffect statusEffect)
Removes a StatusEffect from a given MonoBehaviour.
public static void RemoveStatusEffect(StatusEffectData statusEffectData, int? stack = null)
Removes a StatusEffect from a given MonoBehaviour that contains the given StatusEffectData. If a stack count is given it will remove only the specified amount.
public static void RemoveStatusEffect(ComparableName name)
Removes a StatusEffect from a given MonoBehaviour that contains the given ComparableName name.
statusEffect
The StatusEffect reference that should be removed.
statusEffectData
The StatusEffectData used by the StatusEffect that should be removed.
stack
If an amount is given it will only remove that given number of the stack.
name
The ComparableName name of the StatusEffectData used by the StatusEffect that should be removed.