MCPcopy Create free account
hub / github.com/eva-engine/eva.js / onPause

Method onPause

packages/plugin-sound/lib/SoundSystem.ts:110–115  ·  view source on GitHub ↗

* 游戏暂停的时候调用。 * * Called while the game paused.

()

Source from the content-addressed store, hash-verified

108 * Called while the game paused.
109 */
110 onPause() {
111 if (!this.autoPauseAndStart) {
112 return;
113 }
114 this.pauseAll();
115 }
116
117 /**
118 * System 被销毁的时候调用。

Callers

nothing calls this directly

Calls 1

pauseAllMethod · 0.95

Tested by

no test coverage detected