CCEffectTimed
Inherits CCEffectBase
Public Member Functions
bool
Checks if the effect should be running or not, then applies the paused state based on it.
void
Set the duration of this Timed Effect
Protected Functions
void
Ran when the effect is enabled. Can be overridden by a derived class.
void
Ran when the effect is disabled. Can be overridden by a derived class.
EffectResult
Handles starting the timed effect. Override OnStartEffect(EffectInstance) instead.
EffectResult
Invoked when an effect instance is scheduled to start. The effect should only be applied when EffectResult.Success is returned.
bool
Invoked when an effect instance is scheduled to stop after its time is expired. Return false if the effect cannot be stopped at the current time to retry in CCEffectBase.retryDelay seconds.
void
Invoked when an effect instance is paused.
void
Invoked when an effect instance is resumed.
void
Invoked when an effect instance is reset.
void
Invoked when the behaviour is resumed.
bool
Conditions to be ran.
Properties
float
Duration
[get, ]
Duration in seconds before the effect is automatically ended.
bool
PausedFromMenu
[get, ]
Is the timer paused from the inspector?
bool
Paused
[get, ]
Is the timer paused?
void
Reset
[, ]
Invoked when the behaviour is Reset.