AddStatusEffect

Declaration

public static StatusEffect AddStatusEffect(StatusEffectData statusEffectData)

Parameters

statusEffectData

The data that the new StatusEffect should use.

Returns

StatusEffect Returns the StatusEffect reference that was added to the MonoBehaviourarrow-up-right.

Description

Adds a new StatusEffect to a given MonoBehaviourarrow-up-right.


Declaration

public static StatusEffect AddStatusEffect(StatusEffectData statusEffectData, float duration)

Parameters

statusEffectData

The data that the new StatusEffect should use.

duration

How long in seconds the effect should last.

Returns

StatusEffect Returns the StatusEffect reference that was added to the MonoBehaviourarrow-up-right.

Description

Adds a new StatusEffect to a given MonoBehaviourarrow-up-right for a duration of time.


Declaration

public static StatusEffect AddStatusEffect(StatusEffectData statusEffectData, float duration, ref Actionarrow-up-right action)

Parameters

statusEffectData

The data that the new StatusEffect should use.

duration

How long in seconds the effect should last.

action

A reference Actionarrow-up-right to subscribe the duration decrement to.

Returns

StatusEffect Returns the StatusEffect reference that was added to the MonoBehaviourarrow-up-right.

Description

Adds a new StatusEffect to a given MonoBehaviourarrow-up-right for a duration that decrements when the referenced Actionarrow-up-right is invoked.


Declaration

public static StatusEffect AddStatusEffect(StatusEffectData statusEffectData, Funcarrow-up-right<bool> predicate)

Parameters

statusEffectData

The data that the new StatusEffect should use.

predicate

When true will end the effect.

Returns

StatusEffect Returns the StatusEffect reference that was added to the MonoBehaviourarrow-up-right.

Description

Adds a new StatusEffect to a given MonoBehaviourarrow-up-right that will be removed when the predicate is true.

Last updated