UsedSkill
Contains data for a skill that was used and is currently in use.
Properties
Name | Description | Type |
---|---|---|
skill | The used skill reference. | SkillNode |
user | The skill user's stats reference. | UnitStatsProvider |
cooldownWorker | The cooldown worker of this skill. This may be null if the skill has no cooldown. | CooldownWorker |
windupWorker | The windup worker of this skill. This may be null if the skill has no windup time. | SkillTreeTimeWorker |
isWindingUp | If the skill is currently winding up. | bool |
onCooldown | If the skill is currently on cooldown. | bool |
Methods
OnCooldownUpdated
Perform an action every time the cooldown is updated.
Parameters
Name | Description | Type |
---|---|---|
action | The action to execute on update. | Action<float> |
OnCooldownComplete
Perform an action when cooldown is complete.
Parameters
Name | Description | Type |
---|---|---|
action | The action to execute on complete. | Action |
OnWindupUpdated
Perform an action every time the windup time is updated.
Parameters
Name | Description | Type |
---|---|---|
action | The action to execute on update. | Action<float> |
OnWindupComplete
Perform an action when windup is complete.
Parameters
Name | Description | Type |
---|---|---|
action | The action to execute on complete. | Action |
IsEqualTo
Return Type: bool
Returns if another used skill object is equal.
Parameters
Name | Description | Type |
---|---|---|
other | The other used skill. | UsedSkill |
Last updated