Skip to content

Home > @esengine/ecs-framework-monorepo > TimerManager

TimerManager class

允许动作的延迟和重复执行

Signature:

typescript
export declare class TimerManager extends GlobalManager

Extends: GlobalManager

Properties

Property

Modifiers

Type

Description

_timers

Array<Timer<unknown>>

Methods

Method

Modifiers

Description

schedule(timeInSeconds, repeats, context, onTime)

调度一个一次性或重复的计时器,该计时器将调用已传递的动作

update()

基于 MIT 许可证发布