Add this component to a trigger zone, and it'll override the CharacterJump settings for all characters that cross it
More...
Add this component to a trigger zone, and it'll override the CharacterJump settings for all characters that cross it
◆ OnTriggerEnter2D()
virtual void MoreMountains.CorgiEngine.CharacterJumpOverride.OnTriggerEnter2D |
( |
Collider2D |
collider | ) |
|
|
protectedvirtual |
Triggered when something collides with the override zone
- Parameters
-
collider | Something colliding with the override zone. |
◆ OnTriggerExit2D()
virtual void MoreMountains.CorgiEngine.CharacterJumpOverride.OnTriggerExit2D |
( |
Collider2D |
collider | ) |
|
|
protectedvirtual |
Triggered when something exits the water
- Parameters
-
collider | Something colliding with the water. |
◆ Restore()
virtual void MoreMountains.CorgiEngine.CharacterJumpOverride.Restore |
( |
| ) |
|
|
protectedvirtual |
◆ Update()
virtual void MoreMountains.CorgiEngine.CharacterJumpOverride.Update |
( |
| ) |
|
|
protectedvirtual |
◆ _character
Character MoreMountains.CorgiEngine.CharacterJumpOverride._character |
|
protected |
◆ _characterJump
CharacterJump MoreMountains.CorgiEngine.CharacterJumpOverride._characterJump |
|
protected |
◆ _previousJumpHeight
float MoreMountains.CorgiEngine.CharacterJumpOverride._previousJumpHeight |
|
protected |
◆ _previousJumpMinimumAirTime
float MoreMountains.CorgiEngine.CharacterJumpOverride._previousJumpMinimumAirTime |
|
protected |
◆ _previousJumpRestrictions
◆ _previousNumberOfJumps
int MoreMountains.CorgiEngine.CharacterJumpOverride._previousNumberOfJumps |
|
protected |
◆ _previousNumberOfJumpsLeft
int MoreMountains.CorgiEngine.CharacterJumpOverride._previousNumberOfJumpsLeft |
|
protected |
◆ JumpHeight
float MoreMountains.CorgiEngine.CharacterJumpOverride.JumpHeight = 3.025f |
defines how high the character can jump
◆ JumpMinimumAirTime
float MoreMountains.CorgiEngine.CharacterJumpOverride.JumpMinimumAirTime = 0.1f |
the minimum time in the air allowed when jumping - this is used for pressure controlled jumps
◆ JumpRestrictions
basic rules for jumps : where can the player jump ?
◆ NumberOfJumps
int MoreMountains.CorgiEngine.CharacterJumpOverride.NumberOfJumps =3 |
the maximum number of jumps allowed (0 : no jump, 1 : normal jump, 2 : double jump, etc...)
◆ ResetNumberOfJumpsLeft
bool MoreMountains.CorgiEngine.CharacterJumpOverride.ResetNumberOfJumpsLeft = true |
if this is set to true, on enter/exit, the number of jumps will be set to its maximum, otherwise it'll retain the value it had on entry
The documentation for this class was generated from the following file: