RemoveStatusEffect

Declaration

public static void RemoveStatusEffect(StatusEffect statusEffect)

Parameters

statusEffect

The StatusEffect reference that should be removed.

Description

Removes a StatusEffect from a given MonoBehaviour.


Declaration

public static void RemoveStatusEffect(StatusEffectData statusEffectData, int? stack = null)

Parameters

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.

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

The ComparableName name of 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.

Description

Removes a StatusEffect from a given MonoBehaviour that contains the given ComparableName name.