![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
Condition which requires a cooldown timer to expire; More...
Public Member Functions | |
override bool | CheckCondition (Character character, object other) |
Checks the condition. For example a check when entering a trigger. More... | |
override void | Activated (Character character, object other) |
Applies any activation effects. More... | |
![]() | |
virtual bool | CheckInverseCondition (Character character, object other) |
Checks the inverse condition. For example a check when leaving a trigger. More... | |
![]() | |
virtual void | Validate (PlatformerProMonoBehaviour myTarget) |
Override this method if you want to provide custom validation. The actual code should be surrounded by the if UNITY_EDITOR / endif directive. More... | |
Public Attributes | |
float | coolDownTime = 1.0f |
The cool down time. More... | |
bool | startEnabled = true |
Should we start with the timer expired, or do we need to charge for first use too? More... | |
![]() | |
bool | applyOnInverse |
If true condition will be applied on inverse (for example trigger exit as well as enter). More... | |
Protected Attributes | |
float | currentTimer = 0.0f |
Current cool down timer. More... | |
Additional Inherited Members | |
![]() | |
virtual string | Header [get] |
Gets the header string used to describe the component. More... | |
virtual string | DocLink [get] |
Gets a link to documentation site. More... | |
virtual string | VideoLink [get] |
Gets a link to a youtube video. More... | |
virtual string | Deprecated [get] |
If non-null this component is deprecated. The string shows a message indicating how it should be replaced. More... | |
Condition which requires a cooldown timer to expire;
|
virtual |
Applies any activation effects.
character | Character. |
other | Other object supporting the condition. |
Reimplemented from PlatformerPro.AdditionalCondition.
|
virtual |
Checks the condition. For example a check when entering a trigger.
true
, if enter trigger was shoulded, false
otherwise.character | Character. |
other | Other. |
Reimplemented from PlatformerPro.AdditionalCondition.
float PlatformerPro.CoolDownCondition.coolDownTime = 1.0f |
The cool down time.
|
protected |
Current cool down timer.
bool PlatformerPro.CoolDownCondition.startEnabled = true |
Should we start with the timer expired, or do we need to charge for first use too?