Skip to content

CCEffectInstanceTimed

Inherits CCEffectInstance

Public Member Functions

bool

shouldBeRunning()

Checks if the effect should be running or not, then applies the paused state based on it.

Public Attributes

bool

isActive

Whether the effect instance is active. true when the related Effect behaviour is enabled. When false, pending instances will not start and running instances are paused.

bool

isPaused

Whether the effect instance is paused or not.

Properties

CCEffectTimed

effect

[get, set]

Reference to the target timed effect, null if effect is not timed.

float

unscaledEndTime

[get, set]

Unscaled game time when the timed effect will end. Updated on resume.

float

unscaledTimeLeft

[get, set]

Unscaled game time left to execute.