![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
Condition which only passes if character is above/below a certain height. More...
Public Member Functions | |
override bool | CheckCondition (Character character, object other) |
Returns true if character is above/below given height. More... | |
![]() | |
virtual bool | CheckInverseCondition (Character character, object other) |
Checks the inverse condition. For example a check when leaving a trigger. More... | |
virtual void | Activated (Character character, object other) |
Applies any activation effects. 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 | height |
Y position of character. Character must be higher than this to pass. More... | |
bool | isRelative = true |
If true condition is relative to current transform, false for an absolute world position. More... | |
bool | mustBeBelow |
If true character must be at or below given height, false they must be at or above. More... | |
![]() | |
bool | applyOnInverse |
If true condition will be applied on inverse (for example trigger exit as well as enter). 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 only passes if character is above/below a certain height.
|
virtual |
Returns true if character is above/below given height.
false
character | Character. |
other | Other. |
Reimplemented from PlatformerPro.AdditionalCondition.
float PlatformerPro.HeightCondition.height |
Y position of character. Character must be higher than this to pass.
bool PlatformerPro.HeightCondition.isRelative = true |
If true condition is relative to current transform, false for an absolute world position.
bool PlatformerPro.HeightCondition.mustBeBelow |
If true character must be at or below given height, false they must be at or above.