decreaseTime 减少角色状态的时间
decreaseTime
类型: MethodDeclaration
所属类: State
定义位置: actor.ts
描述
减少角色状态的时间
参数 time
: 持续时间(毫秒)
参数
参数名 | 类型 | 描述 | 默认值 |
---|---|---|---|
time | number | - | - |
返回值
类型: void
源代码
位置: 第 3769 行
public decreaseTime(time: number): void {
if (time > 0) {
this.currentTime = Math.max(this.currentTime - time, 0)
}
}
文档生成时间:2025/7/7 12:07:06