Skip to main content

set 设置等待时间

set

类型: MethodDeclaration

所属类: EventTimer

定义位置: event.ts

描述

设置等待时间

参数 waitingTime: 等待时间

参数

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

返回值

类型: void

源代码

位置: 第 701 行

public set(waitingTime: number): void {
this.duration = waitingTime
// 设置更新函数为:计时
this.event.update = this.tick
}

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