跳到主要内容

tick 等待计时函数

tick​

类型: MethodDeclaration

所属类: EventTimer

定义位置: event.ts

描述​

等待计时函数

参数 this: 事件处理器

参数 deltaTime: 增量时间(毫秒)

返回值:事件是否执行完毕

参数​

参数名类型描述默认值
thisEventHandler--
deltaTimenumber--

返回值​

类型: boolean

事件是否执行完毕

源代码​

位置: 第 719 行

private tick(this: EventHandler, deltaTime: number): boolean {
if ((this.timer!.duration -= deltaTime) <= 0) {
this.update = EventHandler.prototype.update
return this.update(deltaTime)
}
return false
}

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