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

movementFlagsThe 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.
directionThe dash direction input vector. This vector is set when the dash is activated and is not changed while active (Read only).
speedThe speed of the character when the dash is first activated (Read only).
distanceTravelledThe amount of units the character has traveled in the current dash (Read only).
nextTimeAvailableThe time after which a consecutive dash can be performed (Read only).
dashesAvailableThe number of dashes the character has available. This value will reset when the dash cooldown is finished (Read only).
availableWhether a dash can be performed at the current time (Read only).

Methods

OnAbilityActivatedA callback invoked when the ability is activated.
CanAbilityBeActivatedDetermines if the ability can be activated given the current state of the character.
CanAbilityStayActiveDetermines if the ability can stay active given the current state of the character.
CanAbilityBeDeactivatedDetermines if the ability can be deactivated given the current state of the character.
OnCooldownFinishedA callback invoked when the ability cooldown is finished.