Dash
Inherits from Zigurous.CharacterController.MovementAbility<T>
Declaration
public sealed class Dash : MovementAbility<DashSettings>
Description
A movement ability to perform a quick dash in one direction.
Properties
movementFlags | The movement flag(s) associated with the ability. The flag(s) will be set when the ability is turned on and unset when the ability is turned off. |
direction | The dash direction input vector. This vector is set when the dash is activated and is not changed while active (Read only). |
speed | The speed of the character when the dash is first activated (Read only). |
distanceTravelled | The amount of units the character has traveled in the current dash (Read only). |
nextTimeAvailable | The time after which a consecutive dash can be performed (Read only). |
dashesAvailable | The number of dashes the character has available. This value will reset when the dash cooldown is finished (Read only). |
available | Whether a dash can be performed at the current time (Read only). |
Methods
OnAbilityActivated | A callback invoked when the ability is activated. |
CanAbilityBeActivated | Determines if the ability can be activated given the current state of the character. |
CanAbilityStayActive | Determines if the ability can stay active given the current state of the character. |
CanAbilityBeDeactivated | Determines if the ability can be deactivated given the current state of the character. |
OnCooldownFinished | A callback invoked when the ability cooldown is finished. |