这两个事件用还是不用?纠结了。Please note that this event is not 100% guaranteed to be fired.

EVENT_HIDE String
Event triggered when game hide to background. Please note that this event is not 100% guaranteed to be fired.

示例:
cc.game.on(cc.game.EVENT_HIDE, function () {
cc.audioEngine.pauseMusic();
cc.audioEngine.pauseAllEffects();
});
EVENT_SHOW String
Event triggered when game back to foreground Please note that this event is not 100% guaranteed to be fired.