跳到主要内容

increaseTime 增加角色状态的时间

increaseTime

类型: MethodDeclaration

所属类: State

定义位置: actor.ts

描述

增加角色状态的时间

参数 time: 持续时间(毫秒)

参数

参数名类型描述默认值
timenumber--

返回值

类型: void

源代码

位置: 第 4015 行

public increaseTime(time: number): void {
if (time > 0) {
this.currentTime += time;
this.duration = Math.max(this.currentTime, this.duration);
}
}

文档生成时间:2026/2/1 16:51:38