CooldownManager
new CooldownManager(actor)
- Source:
Parameters:
| Name |
Type |
Description |
actor |
Actor
|
绑定的角色对象
|
Members
Methods
- Source:
Parameters:
| Name |
Type |
Description |
key |
string
|
冷却键
|
decreaseCooldown(key, cooldown)
- Source:
Parameters:
| Name |
Type |
Description |
key |
string
|
冷却键
|
cooldown |
number
|
冷却时间
|
delete(key)
- Source:
Parameters:
| Name |
Type |
Description |
key |
string
|
冷却键
|
- Source:
Parameters:
| Name |
Type |
Description |
key |
string
|
冷却键
|
increaseCooldown(key, cooldown)
- Source:
Parameters:
| Name |
Type |
Description |
key |
string
|
冷却键
|
cooldown |
number
|
冷却时间
|
loadData(cooldowns)
- Source:
Parameters:
| Name |
Type |
Description |
cooldowns |
Array
|
|
setCooldown(key, cooldown)
- Source:
Parameters:
| Name |
Type |
Description |
key |
string
|
冷却键
|
cooldown |
number
|
冷却时间
|
update(deltaTime)
- Source:
Parameters:
| Name |
Type |
Description |
deltaTime |
number
|
增量时间(毫秒)
|