increaseTime 增加角色状态的时间
increaseTime
类型: MethodDeclaration
所属类: State
定义位置: actor.ts
描述
增加角色状态的时间
参数 time: 持续时间(毫秒)
参数
| 参数名 | 类型 | 描述 | 默认值 | 
|---|---|---|---|
| time | number | - | - | 
返回值
类型: void
源代码
位置: 第 3758 行
public increaseTime(time: number): void {
    if (time > 0) {
      this.currentTime += time
      this.duration = Math.max(this.currentTime, this.duration)
    }
  }
文档生成时间:2025/7/21 20:53:38