pause(music = false) {
		// only pause when we are not loading stuff
		if (_state !== this.LOADING && !this.isPaused()) {
			// stop the main loop
			_pauseRunLoop();
			// current music stop
			if (music === true) {
				pauseTrack();
			}

			// store time when paused
			_pauseTime = globalThis.performance.now();

			// publish the pause event
			eventEmitter.emit(STATE_PAUSE);
		}
	}
pause the current stage
@name pause
@memberof state
@public
@param {boolean} [music=false] - pause current music track on screen pause