Class JumpAbility
Inheritance
System.Object
JumpAbility
Assembly: cs.temp.dll.dll
Syntax
public class JumpAbility : AbilityCore, IInputAbility, IAbility
Fields
CanJumpInfinitely
Declaration
public bool CanJumpInfinitely
Field Value
Type |
Description |
System.Boolean |
|
JumpAmount
Declaration
Field Value
Type |
Description |
System.Int32 |
|
JumpHeight
Declaration
Field Value
Type |
Description |
System.Single |
|
JumpsRemaining
Declaration
public int JumpsRemaining
Field Value
Type |
Description |
System.Int32 |
|
RunningJumpMultiplier
Declaration
public float RunningJumpMultiplier
Field Value
Type |
Description |
System.Single |
|
Methods
CheckAbilityRequirements()
Check if the character controller is in a movement state or if the ability has special logic checks to make sure it can be performed.
If you want to make sure the ability can start while checking the ControlState call CanStartAbility().
AbilityCore.CanStart calls the CheckAbilityRequirements in it as well so it will do both checks.
Declaration
protected override bool CheckAbilityRequirements()
Returns
Type |
Description |
System.Boolean |
|
Overrides
OnInitialize()
Declaration
protected override void OnInitialize()
Overrides
ResetJumps()
Declaration
Implements