主题
Home > @esengine/ecs-framework-monorepo > ITimer
Signature:
export interface ITimer<TContext = unknown>
Property
Modifiers
Type
Description
context
TContext
Method
getContext()
返回投向T的上下文,作为方便
reset()
将计时器的运行时间重置为0
stop()
调用stop以停止此计时器再次运行。这对非重复计时器没有影响。