MCPcopy Create free account
hub / github.com/esengine/esengine / add

Method add

packages/fairygui/src/core/Timer.ts:76–78  ·  view source on GitHub ↗

* Add a callback to be called each frame * 添加每帧调用的回调

(callback: Function, caller: any)

Source from the content-addressed store, hash-verified

74 * 添加每帧调用的回调
75 */
76 public static add(callback: Function, caller: any): void {
77 Timer.inst.frameLoop(1, caller, callback);
78 }
79
80 /**
81 * Remove a callback

Callers 15

checkTimerMethod · 0.45
addRelationMethod · 0.45
resolveMethod · 0.45
loadFontMethod · 0.45
subscribeMethod · 0.45
subscribeMethod · 0.45
subscribeMethod · 0.45
emitMethod · 0.45
emitWithContextMethod · 0.45
constructorMethod · 0.45
contentPaneMethod · 0.45
centerOnMethod · 0.45

Calls 1

frameLoopMethod · 0.80

Tested by

no test coverage detected