public static void RemoveStatusEffect(StatusEffect statusEffect)
statusEffect
The StatusEffect reference that should be removed.
Removes a StatusEffect from a given MonoBehaviourarrow-up-right.
public static void RemoveStatusEffect(StatusEffectData statusEffectData, int? stack = null)
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.
Removes a StatusEffect from a given MonoBehaviourarrow-up-right that contains the given StatusEffectData. If a stack count is given it will remove only the specified amount.
public static void RemoveStatusEffect(ComparableName name, int? stack = null)
name
The ComparableName name of the StatusEffectData used by the StatusEffect that should be removed.
Removes a StatusEffect from a given MonoBehaviourarrow-up-right that contains the given ComparableName name.