RemoveStatusEffect
Declaration
public static void RemoveStatusEffect(StatusEffect statusEffect)
Parameters
statusEffect
Description
Removes a StatusEffect from a given MonoBehaviour.
Declaration
public static void RemoveStatusEffect(StatusEffectData statusEffectData, int? stack = null)
Parameters
statusEffectData
stack
If an amount is given it will only remove that given number of the stack.
Description
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.
Declaration
public static void RemoveStatusEffect(ComparableName name, int? stack = null)
Parameters
name
stack
If an amount is given it will only remove that given number of the stack.
Description
Removes a StatusEffect from a given MonoBehaviour that contains the given ComparableName name.