window.__require=function e(t,o,n){function c(i,u){if(!o[i]){if(!t[i]){var a=i.split("/");if(a=a[a.length-1],!t[a]){var p="function"==typeof __require&&__require;if(!u&&p)return p(a,!0);if(r)return r(a,!0);throw new Error("Cannot find module '"+i+"'")}i=a}var f=o[i]={exports:{}};t[i][0].call(f.exports,function(e){return c(t[i][1][e]||e)},f,f.exports,e,t,o,n)}return o[i].exports}for(var r="function"==typeof __require&&__require,i=0;i<n.length;i++)c(n[i]);return c}({Test:[function(e,t,o){"use strict";cc._RF.push(t,"d1ea53aLRNMDrA5bw+9aNYa","Test");var n,c=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var c,r=arguments.length,i=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,o,n);else for(var u=e.length-1;u>=0;u--)(c=e[u])&&(i=(r<3?c(i):r>3?c(t,o,i):c(t,o))||i);return r>3&&i&&Object.defineProperty(t,o,i),i};Object.defineProperty(o,"__esModule",{value:!0});var i=cc._decorator,u=i.ccclass,a=i.property,p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.audioClip=null,t}return c(t,e),t.prototype.onLoad=function(){cc.game.on(cc.game.EVENT_SHOW,function(){console.log("Game.EVENT_SHOW"),cc.director.resume(),cc.game.resume()}),cc.game.on(cc.game.EVENT_HIDE,function(){console.log("Game.EVENT_HIDE"),cc.director.pause(),cc.game.pause()}),cc.game.on(cc.game.EVENT_RESTART,function(){console.log("Game.EVENT_RESTART")})},t.prototype.start=function(){},t.prototype.play=function(){var e=cc.audioEngine.playEffect(this.audioClip,!1);console.log("audioId play"),cc.audioEngine.setVolume(e,1),cc.audioEngine.setEffectsVolume(1),cc.audioEngine.setFinishCallback(e,function(){console.log("audio play finish")})},r([a(cc.AudioClip)],t.prototype,"audioClip",void 0),r([u],t)}(cc.Component);o.default=p,cc._RF.pop()},{}]},{},["Test"]);
//# sourceMappingURL=index.js.map
