<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">window.__require=function t(e,n,o){function i(c,r){if(!n[c]){if(!e[c]){var s=c.split("/");if(s=s[s.length-1],!e[s]){var u="function"==typeof __require&amp;&amp;__require;if(!r&amp;&amp;u)return u(s,!0);if(a)return a(s,!0);throw new Error("Cannot find module '"+c+"'")}c=s}var l=n[c]={exports:{}};e[c][0].call(l.exports,function(t){return i(e[c][1][t]||t)},l,l.exports,t,e,n,o)}return n[c].exports}for(var a="function"==typeof __require&amp;&amp;__require,c=0;c&lt;o.length;c++)i(o[c]);return i}({AdManager:[function(t,e,n){"use strict";cc._RF.push(e,"ac37fS7uu9NlLwL6Lj5VLtW","AdManager");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c},c=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{s(o.next(t))}catch(e){a(e)}}function r(t){try{s(o.throw(t))}catch(e){a(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,r)}s((o=o.apply(t,e||[])).next())})},r=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function r(t){return function(e){return s([t,e])}}function s(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(r){a=[6,r],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0});var s=t("../Helper/CocosHelper"),u=t("../Helper/SessionStorageHelper"),l=cc._decorator,d=l.ccclass,p=(l.property,function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.isSwitchTab=!1,e}var n;return i(e,t),n=e,e.getInstance=function(){return n.instance||(n.instance=new n),n.instance},e.prototype.requestAds=function(){var t=this;"undefined"!=typeof YYGGames&amp;&amp;YYGGames.showInterstitial({beforeShowAd:function(){n.isAdRunnning=!0,t.MuteSound(),cc.game.pause()},afterShowAd:function(){t.onAdComplete()}})},e.prototype.isAdRunningOrNot=function(){return n.isAdRunnning},e.prototype.requestRewardAds=function(t){return c(this,void 0,void 0,function(){var e=this;return r(this,function(){return[2,new Promise(function(o){if("undefined"!=typeof YYGGames){if(0==YYGGames.canShowReward())return console.log("REWARD AD IS YET NOT READY"),s.default.getInstance().ShowRewardFailedPopup(),void o(!1);var i=e;YYGGames.showReward({beforeShowAd:function(){n.isAdRunnning=!0,i.MuteSound(),cc.game.pause()},afterShowAd:function(){i.onAdComplete()},rewardComplete:function(){if(t){var e=t.name;u.default.getInstace().setItem(e,"true"),n.AdString.push(e),t.removeFromParent()}o(!0)},rewardDismissed:function(){o(!1)}})}else console.log("sdk not init"),s.default.getInstance().ShowRewardFailedPopup(),o(!1)})]})})},e.prototype.onAdComplete=function(){n.isAdRunnning=!1,0==n.getInstance().isSwitchTab&amp;&amp;s.default.getInstance().gameResume()},e.prototype.MuteSound=function(){cc.audioEngine.pauseMusic(),cc.audioEngine.pauseAllEffects()},e.prototype.StartSound=function(){n.getInstance().isSwitchTab||(cc.audioEngine.resumeMusic(),cc.audioEngine.resumeAllEffects())},e.isAdRunnning=!1,e.AdString=[],n=a([d],e)}(cc.Component));n.default=p,cc._RF.pop()},{"../Helper/CocosHelper":"CocosHelper","../Helper/SessionStorageHelper":"SessionStorageHelper"}],AngleManager:[function(t,e,n){"use strict";cc._RF.push(e,"55204lFDAtOMoeElkcEniVV","AngleManager");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0});var c=cc._decorator,r=c.ccclass,s=c.property,u=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.rotation=0,e.canMove=!1,e.Frames=[],e.PreDistance=0,e.isPick=!1,e}return i(e,t),e.prototype.onLoad=function(){},e.prototype.start=function(){cc.find("Canvas").on(cc.Node.EventType.TOUCH_START,this.TouchStart,this),cc.find("Canvas").on(cc.Node.EventType.TOUCH_MOVE,this.TouchMove,this),cc.find("Canvas").on(cc.Node.EventType.TOUCH_END,this.TouchEnd,this),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this.TouchEnd,this)},e.prototype.TouchStart=function(t){var e=t.getLocation();if(this.node.getComponent(cc.Sprite).enabled)if(this.node.childrenCount&gt;0&amp;&amp;this.node.children[0].getBoundingBoxToWorld().contains(e)&amp;&amp;255==this.node.opacity)this.isPick=!0,this.node.getComponent(cc.Sprite).spriteFrame=this.Frames[1];else if(this.node.getBoundingBoxToWorld().contains(e)&amp;&amp;255==this.node.opacity){this.canMove=!0;var n=this.node.parent.convertToWorldSpaceAR(this.node.position),o=t.getLocation();this.rotation=this.node.parent.angle-this.angle(n.x,n.y,o.x,o.y)}},e.prototype.TouchMove=function(t){if(this.isPick){var e=t.getLocation(),n=this.node.parent.convertToNodeSpaceAR(e);this.node.position=cc.v3(n)}else if(this.canMove){t.getPreviousLocation(),n=this.node.parent.convertToWorldSpaceAR(this.node.position),e=t.getLocation(),this.node.angle=this.angle(n.x,n.y,e.x,e.y);var o=this.getDistance(n.x,n.y,e.x,e.y);this.PreDistance&lt;o?(this.node.scale+=.01,this.node.scale&gt;=2&amp;&amp;(this.node.scale=2)):(this.node.scale-=.01,this.node.scale&lt;=.5&amp;&amp;(this.node.scale=.5)),this.PreDistance=o}},e.prototype.isMoving=function(){return!(!this.canMove&amp;&amp;!this.isPick)},e.prototype.TouchEnd=function(){this.canMove?this.canMove=!1:this.isPick&amp;&amp;(this.isPick=!1,this.node.getComponent(cc.Sprite).spriteFrame=this.Frames[0],this.node.parent.parent.getChildByName("intersect")?this.node.parent.parent.getChildByName("intersect").getBoundingBoxToWorld().intersects(this.node.children[0].getBoundingBoxToWorld())||(cc.find("Canvas").off(cc.Node.EventType.TOUCH_START,this.TouchStart,this),cc.find("Canvas").off(cc.Node.EventType.TOUCH_MOVE,this.TouchMove,this),cc.find("Canvas").off(cc.Node.EventType.TOUCH_END,this.TouchEnd,this),this.node.removeFromParent(),this.canMove=!1):this.node.children[0].getBoundingBox().intersects(this.node.parent.parent.getBoundingBox())||(cc.find("Canvas").off(cc.Node.EventType.TOUCH_START,this.TouchStart,this),cc.find("Canvas").off(cc.Node.EventType.TOUCH_MOVE,this.TouchMove,this),cc.find("Canvas").off(cc.Node.EventType.TOUCH_END,this.TouchEnd,this),this.node.removeFromParent()))},e.prototype.activeFrame=function(){this.node.getComponent(cc.Sprite).enabled=!0,this.node.getComponent(cc.Sprite).spriteFrame=this.Frames[0],this.node.zIndex=1},e.prototype.HideFrame=function(){this.node.getComponent(cc.Sprite).enabled=!1,this.canMove=!1,this.isPick=!1,this.node.zIndex=0},e.prototype.getDistance=function(t,e,n,o){var i=n-t,a=o-e;return Math.sqrt(a*a+i*i)},e.prototype.angle=function(t,e,n,o){var i=o-e,a=n-t,c=Math.atan2(i,a);return(c*=180/Math.PI)&lt;0&amp;&amp;(c=360+c),c},a([s([cc.SpriteFrame])],e.prototype,"Frames",void 0),a([r],e)}(cc.Component);n.default=u,cc._RF.pop()},{}],AudioManager:[function(t,e,n){"use strict";cc._RF.push(e,"01e24rMIL5Iw7+Axy3d/ibd","AudioManager");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0});var c=t("../Promotion/AdManager"),r=cc._decorator.ccclass,s=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.audioClipList=new Map,e.audioPlayingList=[],e.isMute=!1,e.volume=1,e}var n;return i(e,t),n=e,e.getInstance=function(){return n.instance||(n.instance=new n,n.instance.init()),n.instance},e.prototype.init=function(){this.schedule(this.garbageCollector,30,1/0,0);var t=this;cc.loader.loadResDir("Sound",function(e,n){for(var o=0;o&lt;n.length;o++)n[o]instanceof cc.AudioClip&amp;&amp;t.add(n[o].name,n[o])})},e.prototype.add=function(t,e){this.audioClipList.has(t)||this.audioClipList.set(t,e)},e.prototype.addAll=function(t){for(var e="",n=0,o=t;n&lt;o.length;n++){var i=o[n];e=i.name,this.audioClipList.has(e)||this.audioClipList.set(e,i)}},e.prototype.get=function(t){var e=this.audioClipList.get(t);if(e)return e},e.prototype.remove=function(t){this.audioClipList.get(t)&amp;&amp;this.audioClipList.delete(t)},e.prototype.removeAll=function(){this.stopAll(),this.audioClipList.clear()},e.prototype.play=function(t,e,n){if(void 0===e&amp;&amp;(e=!1),void 0===n&amp;&amp;(n=this.volume),!this.isMute){var o,i=this.audioClipList.get(t);if(e&amp;&amp;this.stop(t),i){var a={audioId:o=cc.audioEngine.play(i,e,cc.audioEngine.getMusicVolume()),audioName:t,audioVolume:1};return this.audioPlayingList.push(a),cc.audioEngine.getDuration(o)}return c.default.getInstance().isAdRunningOrNot()?(o=cc.audioEngine.stop(o),cc.audioEngine.getDuration(o)):0==cc.audioEngine.getEffectsVolume()?(o=cc.audioEngine.stop(o),cc.audioEngine.getDuration(o)):void 0}},e.prototype.playMusic=function(t,e){void 0===e&amp;&amp;(e=!1);var n=this.audioClipList.get(t);n&amp;&amp;cc.audioEngine.playMusic(n,e)},e.prototype.stop=function(t){for(var e=-1,n="",o=0,i=this.audioPlayingList;o&lt;i.length;o++){var a=i[o];e=a.audioId,n=a.audioName,t.includes(n)&amp;&amp;cc.audioEngine.stop(e)}},e.prototype.stopAll=function(){cc.audioEngine.stopAllEffects(),this.audioPlayingList=[]},e.prototype.pause=function(t){for(var e=-1,n=0,o=this.audioPlayingList;n&lt;o.length;n++){var i=o[n];if(e=i.audioId,i.audioName===t&amp;&amp;cc.audioEngine.getState(e)===cc.audioEngine.AudioState.PLAYING){cc.audioEngine.pause(e);break}}},e.prototype.isPlaying=function(t){for(var e=-1,n=0,o=this.audioPlayingList;n&lt;o.length;n++){var i=o[n];if(e=i.audioId,i.audioName===t&amp;&amp;cc.audioEngine.getState(e)===cc.audioEngine.AudioState.PLAYING)return!0}return!1},e.prototype.pauseAll=function(){cc.audioEngine.pauseAll()},e.prototype.resume=function(t){for(var e=-1,n=0,o=this.audioPlayingList;n&lt;o.length;n++){var i=o[n];if(e=i.audioId,i.audioName===t&amp;&amp;cc.audioEngine.getState(e)===cc.audioEngine.AudioState.PAUSED){cc.audioEngine.resume(e);break}}},e.prototype.isPause=function(t){for(var e=-1,n=0,o=this.audioPlayingList;n&lt;o.length;n++){var i=o[n];if(e=i.audioId,i.audioName===t&amp;&amp;cc.audioEngine.getState(e)===cc.audioEngine.AudioState.PAUSED)return!0}return!1},e.prototype.resumeAll=function(){cc.audioEngine.resumeAll()},e.prototype.setVolume=function(t,e){for(var n=-1,o=0,i=this.audioPlayingList;o&lt;i.length;o++){var a=i[o];if(n=a.audioId,a.audioName===t){cc.audioEngine.setVolume(n,e),a.audioVolume=e;break}}},e.prototype.setAllVolume=function(t){for(var e=-1,n=0,o=this.audioPlayingList;n&lt;o.length;n++){var i=o[n];e=i.audioId,cc.audioEngine.setVolume(e,t),i.audioVolume=t}},e.prototype.mute=function(){this.setAllMute(0),this.isMute=!0},e.prototype.unMute=function(){this.setAllMute(1),this.isMute=!1},e.prototype.setAllMute=function(t){for(var e=-1,n=0,o=this.audioPlayingList;n&lt;o.length;n++)e=o[n].audioId,cc.audioEngine.setVolume(e,t)},e.prototype.garbageCollector=function(){for(var t=null,e=this.audioPlayingList.length-1;e&gt;=0;e--)switch(t=this.audioPlayingList[e],cc.audioEngine.getState(t.audioId)){case cc.audioEngine.AudioState.STOPPED:case cc.audioEngine.AudioState.ERROR:this.audioPlayingList.splice(e,1)}},n=a([r],e)}(cc.Component);n.default=s,cc._RF.pop()},{"../Promotion/AdManager":"AdManager"}],CanvasManager:[function(t,e,n){"use strict";cc._RF.push(e,"824d41Si+hEBYdhvFNgPqtb","CanvasManager");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0});var c=cc._decorator,r=c.ccclass,s=(c.property,function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.canvasdata=null,e.PatternData=[],e.DefaultData=null,e.CanvasWidth=0,e.CanvasHeight=0,e.IsEraseData=!1,e}return i(e,t),e.prototype.initWithData=function(t){this.CanvasWidth=t.width,this.CanvasHeight=t.height;var e=document.createElement("canvas"),n=e.getContext("2d");e.width=this.CanvasWidth,e.height=this.CanvasHeight,this.canvasdata={UserCanvas:e,UserContext:n,DrawNode:t,CanvasWidth:this.CanvasWidth,CanvasHeight:this.CanvasHeight,ID:0}},e.prototype.UpdateTexture=function(){var t=new cc.SpriteFrame,e=new cc.Texture2D,n=this.getCanvasData();e.initWithData(this.getImageData(),cc.Texture2D.PixelFormat.RGBA8888,n.CanvasWidth,n.CanvasHeight),t.setTexture(e),n.DrawNode.getComponent(cc.Sprite)?n.DrawNode.getComponent(cc.Sprite).spriteFrame=t:n.DrawNode.getComponent(cc.Mask)&amp;&amp;(n.DrawNode.getComponent(cc.Mask).spriteFrame=t)},e.prototype.setImageData=function(t){this.getCanvasData().UserContext.putImageData(t,0,0),this.UpdateTexture()},e.prototype.setEraseOn=function(t){this.IsEraseData=t},e.prototype.getImageData=function(){var t=this.getCanvasData();return null==t?null:t.UserContext.getImageData(0,0,t.CanvasWidth,t.CanvasHeight)},e.prototype.clearAll=function(){var t=this.getCanvasData();t.UserContext.clearRect(0,0,t.CanvasWidth,t.CanvasHeight),t.UserContext.rect(0,0,t.UserCanvas.width,t.UserCanvas.height)},e.prototype.getCanvasData=function(){return this.canvasdata},e.prototype.resetTexture=function(t){this.clearAll(),this.setImageData(this.getPatternData(t))},e.prototype.LoadTexture=function(t,e,n){var o=this,i=document.createElement("canvas"),a=i.getContext("2d"),c=new Image,r=this;c.onload=function(){a.clearRect(0,0,o.CanvasWidth,o.CanvasHeight);var t=c.width,s=c.height;if(n&amp;&amp;(t=o.CanvasWidth,s=o.CanvasHeight),i.width=t,i.height=s,n){var u=a.createPattern(c,"repeat");a.rect(0,0,i.width,i.height),a.fillStyle=u,a.fill()}else a.drawImage(c,t/2-c.width/2,s/2-c.height/2);r.PatternData.push({PatternData:a.getImageData(0,0,t,s),ID:e}),0==e&amp;&amp;r.setImageData(a.getImageData(0,0,t,s))},c.src=t},e.prototype.getPatternData=function(t){if(null==this.PatternData)return null;for(var e=0;e&lt;this.PatternData.length;e++)if(this.PatternData[e].ID==t)return this.PatternData[e].PatternData},e.prototype.UpdatePatternDrawing=function(t,e){if(null!=e){var n=this.getImageData(),o=this.getPatternData(t);if(null!=o){n.width;for(var i=n.data,a=e.data,c=o.data,r=0;r&lt;e.data.length;r+=4){var s=r;a[s+3]&amp;&amp;a[s+3]&gt;0&amp;&amp;(this.IsEraseData?(i[s+0]=0,i[s+1]=0,i[s+2]=0,i[s+3]=0):(i[s+0]=c[s+0],i[s+1]=c[s+1],i[s+2]=c[s+2],i[s+3]=c[s+3]))}this.setImageData(n)}}},e.prototype.getDrawingPixels=function(){for(var t=0,e=this.getImageData().data,n=0;n&lt;e.length;n+=4)e[n+3]&amp;&amp;e[n+3]&gt;0&amp;&amp;t++;return t},e.prototype.getTotalPixels=function(t){for(var e=0,n=this.getPatternData(t).data,o=0;o&lt;n.length;o+=4)n[o+3]&amp;&amp;n[o+3]&gt;0&amp;&amp;e++;return e},e.prototype.getDrawingPercentage=function(t){void 0===t&amp;&amp;(t=1);var e=this.getTotalPixels(t);return this.getDrawingPixels()/e*100},a([r],e)}(cc.Component));n.default=s,cc._RF.pop()},{}],CocosHelper:[function(t,e,n){"use strict";cc._RF.push(e,"7f9c3QfZo5Cbp1EblnOZWF3","CocosHelper");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c},c=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{s(o.next(t))}catch(e){a(e)}}function r(t){try{s(o.throw(t))}catch(e){a(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,r)}s((o=o.apply(t,e||[])).next())})},r=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function r(t){return function(e){return s([t,e])}}function s(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(r){a=[6,r],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0}),n.getRegionDragon=n.getTextureHeightDragon=n.getTextureWidthDragon=n.getTextureSizeDragon=n.getTextureSize=n.getRegion=n.PrintAllRegion=n.getSpineAnimationDuration=n.PrintAllAnimationNames=n.ShowSlotSpine=n.HideSlotSpine=n.PrintAllSlotSpine=n.getAnimationDuration=n.getAnimationList=n.getSlot=n.PrintAllSlot=n.ShowSlot=n.HideSlot=n.shuffleArray=n.getRandomFloat=n.getRandomNumber=n.Padding=void 0;var s=t("../Promotion/AdManager"),u=cc._decorator,l=u.ccclass,d=(u.property,function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.prefab=[],e.isSwitchTab=!1,e.ItemIndex=[],e.isLevelDone=[!1,!1,!1,!1,!1],e.LoadedTexture=[],e.Canvas=null,e.Context=null,e.tempUserTexture=null,e}var n;return i(e,t),n=e,e.getInstance=function(){return n.instance||(n.instance=new n,n.instance.registerEvent()),n.instance},e.prototype.registerEvent=function(){cc.game.on(cc.game.EVENT_SHOW,n.instance.gameResume,n.instance),cc.game.on(cc.game.EVENT_HIDE,n.instance.gamePause,n.instance),this.Canvas=document.createElement("canvas"),this.Context=this.Canvas.getContext("2d"),this.tempUserTexture=new cc.Texture2D},e.prototype.reShuffleArray=function(){p(this.ItemIndex)},e.prototype.gameResume=function(){s.default.getInstance().isSwitchTab=!1,s.default.getInstance().isAdRunningOrNot()?(cc.game.pause(),s.default.getInstance().MuteSound()):(cc.game.resume(),s.default.getInstance().StartSound())},e.prototype.gamePause=function(){cc.game.pause(),s.default.getInstance().isSwitchTab=!0,s.default.getInstance().MuteSound(),console.log("Game Pause")},e.prototype.loadPromotion=function(){var t=this,e=this;return new Promise(function(n,o){0==t.prefab.length?cc.loader.loadResDir("/Prefab",function(t,i){if(t)o(!1);else{if(0==e.prefab.length)for(var a=0,c=i;a&lt;c.length;a++){var r=c[a];e.prefab.push(r)}n(!0)}}):n(!0)})},e.prototype.addLogo=function(t,e){return c(this,void 0,void 0,function(){var n,o,i,a,c;return r(this,function(r){switch(r.label){case 0:return 0!=(n=this).prefab.length?[3,2]:[4,this.loadPromotion()];case 1:r.sent(),r.label=2;case 2:for(o=0,i=n.prefab;o&lt;i.length;o++)if("logo"==(a=i[o]).name){c=cc.instantiate(a),t.addChild(c),c.position=e;break}return[2]}})})},e.prototype.addMore=function(t,e){return c(this,void 0,void 0,function(){var n,o,i,a,c;return r(this,function(r){switch(r.label){case 0:return 0!=(n=this).prefab.length?[3,2]:[4,this.loadPromotion()];case 1:r.sent(),r.label=2;case 2:for(o=0,i=n.prefab;o&lt;i.length;o++)if("more"==(a=i[o]).name){c=cc.instantiate(a),t.addChild(c),c.position=e;break}return[2]}})})},e.prototype.addPromotion=function(t){return c(this,void 0,void 0,function(){var e,n,o,i,a;return r(this,function(c){switch(c.label){case 0:return 0!=(e=this).prefab.length?[3,2]:[4,this.loadPromotion()];case 1:c.sent(),c.label=2;case 2:for(n=0,o=e.prefab;n&lt;o.length;n++)if("promotion"==(i=o[n]).name){a=cc.instantiate(i),t.addChild(a),a.position=cc.v3(56565,56565,5656565);break}return[2]}})})},e.prototype.ShowPromotion=function(t){t.getChildByName("promotion")&amp;&amp;(t.getChildByName("promotion").position=cc.Vec3.ZERO,t.getChildByName("more")&amp;&amp;(t.getChildByName("more").active=!1,console.log("more hide")),t.getChildByName("logo")&amp;&amp;(t.getChildByName("logo").active=!1))},e.prototype.ShowRewardFailedPopup=function(){if(cc.find("Canvas/RewardFailPopup"))cc.game.emit("RewarFailed.Open");else for(var t=0,e=this.prefab;t&lt;e.length;t++){var n=e[t];if("RewardFailPopup"==n.name){var o=cc.instantiate(n);cc.find("Canvas").addChild(o),o.position=cc.Vec3.ZERO,o.active=!0;break}}},e.prototype.LoadTexture=function(t,e,n,o){return c(this,void 0,void 0,function(){var i,a,s=this;return r(this,function(){return o&amp;&amp;(this.Canvas.width=e.width,this.Canvas.height=e.height,i=new Image,a=v(t,n),i.onload=function(){return c(s,void 0,void 0,function(){return r(this,function(){return this.Context.clearRect(0,0,e.width,e.height),this.Context.drawImage(i,a.x,a.y),this.tempUserTexture=new cc.Texture2D,this.tempUserTexture.initWithElement(this.Canvas),this.LoadedTexture.push({key:o,value:this.tempUserTexture}),[2]})})},i.src=o),[2]})})},e.prototype.UpdateTexture=function(t,e,n,o){this.Canvas.width=e.width,this.Canvas.height=e.height;var i=v(t,n);return this.Context.clearRect(0,0,e.width,e.height),this.Context.putImageData(o,i.x,i.y),this.tempUserTexture=new cc.Texture2D,this.tempUserTexture.initWithElement(this.Canvas),this.tempUserTexture},e.prototype.LoadTextureAsync=function(t,e,n){return c(this,void 0,void 0,function(){var o;return r(this,function(i){switch(i.label){case 0:console.time("start"),o=0,i.label=1;case 1:return o&lt;n.length?null!=this.getTexture(n[o].value)?[3,3]:[4,this.LoadTexture(t,e,n[o].slotname,n[o].value)]:[3,4];case 2:i.sent(),i.label=3;case 3:return o++,[3,1];case 4:return console.timeEnd("start"),console.log("Load All"),[2]}})})},e.prototype.getTexture=function(t){for(var e=0;e&lt;this.LoadedTexture.length;e++)if(this.LoadedTexture[e].key==t)return this.LoadedTexture[e].value;return null},e.prototype.loadTexture=function(t,e,n){return c(this,void 0,void 0,function(){return r(this,function(o){switch(o.label){case 0:return null!=this.getTexture(n.value)?[3,2]:[4,this.LoadTexture(t,e,n.slotname,n.value)];case 1:o.sent(),o.label=2;case 2:return[2]}})})},n=a([l],e)}(cc.Component));function p(t){for(var e=t.length-1;e&gt;0;e--){var n=Math.floor(Math.random()*(e+1)),o=t[e];t[e]=t[n],t[n]=o}}function h(t){return t.dragonAtlasAsset.texture.width}function f(t){return t.dragonAtlasAsset.texture.height}function v(t,e){return t.armature().getSlot(e)._displayData.texture.region}n.default=d,n.Padding=function(t,e){for(;t.length!=e;)t="0"+t;return t},n.getRandomNumber=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},n.getRandomFloat=function(t,e){return Math.random()*(e-t)+t},n.shuffleArray=p,n.HideSlot=function(t,e){var n=t.armature();n.getSlots().forEach(function(t){t.name==e&amp;&amp;(n.getSlot(e).offset.scaleX=0,n.getSlot(e).invalidUpdate())})},n.ShowSlot=function(t,e){var n=t.armature();n.getSlots().forEach(function(t){t.name==e&amp;&amp;(n.getSlot(e).offset.scaleX=1,n.getSlot(e).invalidUpdate())})},n.PrintAllSlot=function(t){t.armature().getSlots().forEach(function(t){console.log(t.name)})},n.getSlot=function(t){return t.armature().getSlot(name)},n.getAnimationList=function(t){for(var e=[],n=t.getAnimationNames(t.armatureName),o=0;o&lt;n.length;o++)e.push(n[o]);return e},n.getAnimationDuration=function(t,e){var n=0;if(t.armature().animation.animations[e]&amp;&amp;(n=t.armature().animation.animations[e].duration),n)return n},n.PrintAllSlotSpine=function(t){t.skeletonData.skeletonJson.slots.forEach(function(t){console.log(t.name)})},n.HideSlotSpine=function(t,e){var n=t.findSlot(e);n&amp;&amp;(n.color=cc.color(n.color.r,n.color.g,n.color.b,0))},n.ShowSlotSpine=function(t,e){var n=t.findSlot(e);n&amp;&amp;(n.color=cc.color(n.color.r,n.color.g,n.color.b,1))},n.PrintAllAnimationNames=function(t){t.skeletonData._skeletonCache.animations.forEach(function(t){console.log(t.name)})},n.getSpineAnimationDuration=function(t,e){for(var n=t.skeletonData._skeletonCache.animations,o=0;o&lt;n.length;o++){var i=n[o];if(e===i.name)return i.duration}return 0},n.PrintAllRegion=function(t){t.skeletonData._atlasCache.regions.forEach(function(t){console.log(t.name)})},n.getRegion=function(t,e){var n=null;return t.skeletonData._atlasCache.regions.forEach(function(t){t.name==e&amp;&amp;(n=cc.rect(t.x,t.y,t.width,t.height))}),n},n.getTextureSize=function(t){return cc.size(t.skeletonData.textures[0].width,t.skeletonData.textures[0].height)},n.getTextureSizeDragon=function(t){return cc.size(h(t),f(t))},n.getTextureWidthDragon=h,n.getTextureHeightDragon=f,n.getRegionDragon=v,cc._RF.pop()},{"../Promotion/AdManager":"AdManager"}],DragonHelper:[function(t,e,n){"use strict";cc._RF.push(e,"1be92NwuLVDGosJtCj2JoyX","DragonHelper");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c},c=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{s(o.next(t))}catch(e){a(e)}}function r(t){try{s(o.throw(t))}catch(e){a(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,r)}s((o=o.apply(t,e||[])).next())})},r=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function r(t){return function(e){return s([t,e])}}function s(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(r){a=[6,r],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0});var s=t("./CocosHelper"),u=t("./HelperTools"),l=cc._decorator,d=l.ccclass,p=l.property,h=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.DrawingTexture=null,e.nativeURL=[],e.CharacterObject=null,e.OriginalTextureSize=null,e}return i(e,t),e.prototype.onLoad=function(){this.CharacterObject=this.node.getComponent(dragonBones.ArmatureDisplay),this.OriginalTextureSize=s.getTextureSizeDragon(this.CharacterObject),s.PrintAllSlot(this.CharacterObject),this.DrawingTexture&amp;&amp;this.loadNativeURL(this.DrawingTexture),"DressUp"!=cc.director.getScene().name&amp;&amp;this.resetCharacter()},e.prototype.resetCharacter=function(){s.HideSlot(this.CharacterObject,"hair"),s.HideSlot(this.CharacterObject,"glasses"),s.HideSlot(this.CharacterObject,"shoes01"),s.HideSlot(this.CharacterObject,"leg01"),s.HideSlot(this.CharacterObject,"leg02"),s.HideSlot(this.CharacterObject,"leg03"),s.HideSlot(this.CharacterObject,"shoes02"),s.HideSlot(this.CharacterObject,"shoes03"),s.HideSlot(this.CharacterObject,"shoes04"),s.HideSlot(this.CharacterObject,"hat"),s.HideSlot(this.CharacterObject,"dress")},e.prototype.setTexture=function(t,e){return c(this,void 0,void 0,function(){var n,o;return r(this,function(i){switch(i.label){case 0:return null!=e?[3,2]:[4,u.Delay(.5)];case 1:return i.sent(),s.HideSlot(this.CharacterObject,t),[3,7];case 2:return null!=(n=s.default.getInstance().getTexture(e))?[3,5]:[4,s.default.getInstance().loadTexture(this.CharacterObject,this.OriginalTextureSize,this.getURLFromURL(e))];case 3:return i.sent(),[4,u.Delay(.5)];case 4:return i.sent(),o=s.default.getInstance().getTexture(e),this.CharacterObject.armature().getSlot(t)._displayData.texture.spriteFrame.setTexture(o),s.ShowSlot(this.CharacterObject,t),[3,7];case 5:return[4,u.Delay(.5)];case 6:i.sent(),this.CharacterObject.armature().getSlot(t)._displayData.texture.spriteFrame.setTexture(n),s.ShowSlot(this.CharacterObject,t),i.label=7;case 7:return[2]}})})},e.prototype.setTextureWithData=function(t,e){return c(this,void 0,void 0,function(){var n;return r(this,function(){return n=s.default.getInstance().UpdateTexture(this.CharacterObject,this.OriginalTextureSize,t,e),this.CharacterObject.armature().getSlot(t)._displayData.texture.spriteFrame.setTexture(n),s.ShowSlot(this.CharacterObject,t),[2]})})},e.prototype.start=function(){s.default.getInstance().LoadTextureAsync(this.CharacterObject,this.OriginalTextureSize,this.nativeURL)},e.prototype.loadTextureWithURL=function(t){var e=this;t.children.forEach(function(t){return c(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,s.default.getInstance().loadTexture(this.CharacterObject,this.OriginalTextureSize,this.getURLFromURL(this.getURL(t)))];case 1:return e.sent(),[2]}})})})},e.prototype.playanimation=function(t,e){this.CharacterObject.playAnimation(t,e)},e.prototype.loadNativeURL=function(t){var e=this;t.children.forEach(function(t){t.childrenCount&gt;0?e.loadNativeURL(t):t.getComponent(cc.Sprite)&amp;&amp;e.nativeURL.push({key:t.parent.name+t.name,slotname:t.parent.name,value:t.getComponent(cc.Sprite).spriteFrame.getTexture().nativeUrl})})},e.prototype.getURL=function(t){if(null==t)return null;for(var e=0;e&lt;this.nativeURL.length;e++)if(this.nativeURL[e].key==t.parent.name+t.name)return this.nativeURL[e].value;return null},e.prototype.getURLFromURL=function(t){for(var e=0;e&lt;this.nativeURL.length;e++)if(this.nativeURL[e].value==t)return this.nativeURL[e];return null},a([p(cc.Node)],e.prototype,"DrawingTexture",void 0),a([d],e)}(cc.Component);n.default=h,cc._RF.pop()},{"./CocosHelper":"CocosHelper","./HelperTools":"HelperTools"}],DrawingManager:[function(t,e,n){"use strict";cc._RF.push(e,"23ba8JpANtF+Lc+pQqAAVEi","DrawingManager");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0}),n.DRAWING_TYPE=void 0;var c,r=t("./CanvasManager"),s=cc._decorator,u=s.ccclass;s.property,function(t){t[t.NONE=0]="NONE",t[t.DRAWING=1]="DRAWING",t[t.FILL=2]="FILL",t[t.STICKER=3]="STICKER"}(c=n.DRAWING_TYPE||(n.DRAWING_TYPE={}));var l=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.TextureSize=cc.Size.ZERO,e.DrawingType=c.DRAWING,e.SelectedColorID=0,e.DrawNode=null,e.CanvasManagerObj=null,e}return i(e,t),e.prototype.initWithData=function(t){this.TextureSize=t.getContentSize(),this.DrawNode=t,this.CanvasManagerObj=new r.default,this.CanvasManagerObj.initWithData(t)},e.prototype.loadTextureFrame=function(t,e,n){this.CanvasManagerObj.LoadTexture(t,e,n)},e.prototype.resetTextureFrame=function(t){this.CanvasManagerObj.resetTexture(t)},e.prototype.clearAll=function(){this.CanvasManagerObj.clearAll()},e.prototype.setEraseOn=function(t){this.CanvasManagerObj.setEraseOn(t)},e.prototype.updateCanvas=function(t,e){this.CanvasManagerObj.UpdatePatternDrawing(t,e)},e.prototype.getPercentage=function(t){return this.CanvasManagerObj.getDrawingPercentage(t)},e.prototype.getImageData=function(){return this.CanvasManagerObj.getImageData()},a([u],e)}(cc.Component);n.default=l,cc._RF.pop()},{"./CanvasManager":"CanvasManager"}],Eating:[function(t,e,n){"use strict";cc._RF.push(e,"bd23dgRn+hFVJu6KJWZFcjz","Eating");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0}),n.capturePhoto=void 0;var c=t("../../../Common/Script/Helper/AudioManager"),r=cc._decorator,s=r.ccclass,u=(r.property,function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.canEat=!1,e.drawingCanvas=null,e}return i(e,t),e.prototype.start=function(){this.drawingCanvas=document.createElement("canvas"),this.drawingCanvas.width=504,this.drawingCanvas.height=800,this.node.on(cc.Node.EventType.TOUCH_START,this.TouchStart,this),c.default.getInstance()},e.prototype.TouchStart=function(t){var e=this;if(cc.find("Canvas/Eating/eat/it looks").active){c.default.getInstance().play("effect_button"),cc.find("Canvas/Eating/eat/it looks").active=!1;var n=cc.find("Canvas/Eating/eat").getComponent(cc.Animation).play().duration;this.playReadyGoSound(n),cc.tween(this.node).delay(n).call(function(){e.canEat=!0,cc.find("Canvas/Eating/numbers").active=!0;var t=cc.find("Canvas/Eating/numbers").getComponent(cc.Animation).play("Numbers").duration;e.PlayNumberSound(t),cc.tween(cc.find("Canvas/Eating/numbers")).delay(t).call(function(){e.canEat=!1,cc.find("Canvas/Eating/menubtn").active=!0,cc.find("Canvas/Eating/Next").active=!0,cc.find("Canvas/Eating/numbers").active=!1,e.checkPercentage()&lt;=5?(c.default.getInstance().play("effect_liukoushui"),cc.find("Canvas/Eating/welldone").active=!0,c.default.getInstance().play("item_welldone")):(c.default.getInstance().play("effect_lose"),cc.find("Canvas/Eating/eat/not good").active=!0)}).start()}).start()}this.canEat&amp;&amp;this.drawInCanvas(t.getLocationInView()),console.log(t.getLocationInView().x,t.getLocationInView().y)},e.prototype.playReadyGoSound=function(t){cc.tween(this.node).call(function(){c.default.getInstance().play("effect_ready")}).delay(t/2).call(function(){c.default.getInstance().play("effect_go")}).start()},e.prototype.PlayNumberSound=function(t){cc.tween(cc.find("Canvas/Eating/numbers")).repeat(10,cc.tween(cc.find("Canvas/Eating/numbers")).call(function(){c.default.getInstance().play("effect_countdown")}).delay(t/10)).start()},e.prototype.drawInCanvas=function(t){c.default.getInstance().play("effect_eat");var e=this.drawingCanvas.getContext("2d");e.beginPath(),e.arc(t.x,t.y,50,0,2*Math.PI),e.fill();var n=new cc.Texture2D;n.initWithElement(this.drawingCanvas),cc.find("Canvas/Eating/ConeMask").getComponent(cc.Mask).spriteFrame=new cc.SpriteFrame(n)},e.prototype.clearCanvas=function(){this.drawingCanvas.getContext("2d").clearRect(0,0,504,800);var t=new cc.Texture2D;t.initWithElement(this.drawingCanvas),cc.find("Canvas/Eating/ConeMask").getComponent(cc.Mask).spriteFrame=new cc.SpriteFrame(t)},e.prototype.checkPercentage=function(){for(var t=this.drawingCanvas.getContext("2d").getImageData(161,253,174,416),e=this.drawingCanvas.width*this.drawingCanvas.height,n=4*e,o=t.data,i=0,a=3;a&lt;n;a+=4)o[a]&lt;=0&amp;&amp;i++;var c=i/e*100;return console.log("percent",c),c},e.prototype.onCameraButtonClicked=function(){c.default.getInstance().play("menuframe_camera"),l(cc.find("Canvas/Eating/Frame/photo")),cc.find("Canvas/Eating/Frame").active=!0},e.prototype.onEatButtonClicked=function(){c.default.getInstance().play("effect_button"),this.clearCanvas(),cc.find("Canvas/Eating/eat/it looks").active||(cc.find("Canvas/Eating/Next").active=!1,cc.find("Canvas/Eating/menubtn").active=!1,cc.find("Canvas/Eating/btn").active=!1,cc.find("Canvas/Eating/eat/it looks").active=!0,cc.find("Canvas/Eating/eat/not good").active=!1,cc.find("Canvas/Eating/welldone").active=!1)},e.prototype.onFrameClosed=function(){c.default.getInstance().play("effect_button"),cc.find("Canvas/Eating/Frame").active=!1},e.prototype.onNextButtonClicked=function(t){c.default.getInstance().play("effect_button"),t.target.getComponent(cc.Button).interactable=!1,cc.find("Canvas/promotion").setPosition(cc.Vec2.ZERO),cc.find("Canvas/Eating/menubtn").active=!1,cc.find("Canvas/Eating/btn").active=!1,cc.find("Canvas/Eating/welldone").active=!1},a([s],e)}(cc.Component));function l(t){var e=new cc.Node;e.parent=cc.director.getScene();var n=e.addComponent(cc.Camera);e.position=new cc.Vec3(252,400,0),n.cullingMask=4294967295;var o=new cc.RenderTexture;o.initWithSize(504,800,cc.RenderTexture.DepthStencilFormat.RB_FMT_S8),n.targetTexture=o,n.render();var i=o.readPixels(),a=new cc.Texture2D;a.initWithData(i,cc.Texture2D.PixelFormat.RGBA8888,504,800);var c=new cc.SpriteFrame;c.setTexture(a),t.getComponent(cc.Sprite).spriteFrame=c}n.default=u,n.capturePhoto=l,cc._RF.pop()},{"../../../Common/Script/Helper/AudioManager":"AudioManager"}],GlobalData:[function(t,e,n){"use strict";cc._RF.push(e,"7998d0FU05M7ZicmkTqWazx","GlobalData"),Object.defineProperty(n,"__esModule",{value:!0}),n.GlobalData=void 0,n.GlobalData={data:{flags:{DoughShape:["","","",""],selectedFruit:1,selectedCone:1,selectedIcecream:1,selectedView:0,isCompletedPicture:[!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1],Jigsaw:[!1,!1,!1,!1,!1,!1,!1,!1],isViewDone:[!1,!1,!1,!1,!1],isStartStory:!0,isCompleteAnimation:!1,FirstComplete:!1}}},cc._RF.pop()},{}],HairColorPicker:[function(t,e,n){"use strict";cc._RF.push(e,"e2060bTpeJDpopZgeeugsDR","HairColorPicker");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0});var c=cc._decorator,r=c.ccclass,s=c.property,u=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.wheel=null,e.event=null,e.ang=0,e.angStart=0,e.isStart=!1,e.canvasSize=cc.size(800,504),e.offset=null,e.angXY=function(t){var n=e.wheel.getContentSize();t=cc.v2(t.x+e.canvasSize.width/2,t.y+e.canvasSize.height/2);var o=n.width/2,i=t.y+e.offset.y-e.node.getBoundingBoxToWorld().yMax+.7*o,a=t.x-e.offset.x-e.node.getBoundingBoxToWorld().xMin+.7*o,c=Math.atan2(i,a);return a&lt;=10&amp;&amp;a&gt;=-10&amp;&amp;i&gt;=-10&amp;&amp;i&lt;=10?null:c},e}return i(e,t),e.prototype.onLoad=function(){},e.prototype.start=function(){this.node.on(cc.Node.EventType.TOUCH_START,this.touchStart,this),this.node.on(cc.Node.EventType.TOUCH_MOVE,this.touchMove,this),this.node.on(cc.Node.EventType.TOUCH_END,this.touchEnd,this),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this.touchEnd,this)},e.prototype.touchStart=function(t){this.offset=cc.v2(this.node.position);var e=cc.find("Canvas").convertToNodeSpaceAR(t.getLocation());this.isStart=!0,this.angStart=this.angXY(e)-this.ang},e.prototype.touchMove=function(t){var e=cc.find("Canvas").convertToNodeSpaceAR(t.getLocation());if(this.isStart){var n=this.angXY(e);n&amp;&amp;(this.ang=n-this.angStart,this.wheel.angle=this.get360Angle(cc.misc.radiansToDegrees(this.ang)))}},e.prototype.touchEnd=function(){this.isStart=!1;var t=Math.floor(this.get360Angle(cc.misc.radiansToDegrees(this.ang))),e=t%30;this.wheel.angle=e&lt;15?t-e:t+(30-e),this.UpdateBrush()},e.prototype.get360Angle=function(t){return this.to_positive_angle(t)},e.prototype.to_positive_angle=function(t){for(t%=360;t&lt;0;)t+=360;return t},e.prototype.UpdateBrush=function(){var t=Math.abs(this.wheel.angle);this.event&amp;&amp;this.event.emit([t])},a([s(cc.Node)],e.prototype,"wheel",void 0),a([s(cc.Component.EventHandler)],e.prototype,"event",void 0),a([r],e)}(cc.Component);n.default=u,cc._RF.pop()},{}],HelperTools:[function(t,e,n){"use strict";cc._RF.push(e,"13812UirHdE9JGkYgNum3bN","HelperTools");var o=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{s(o.next(t))}catch(e){a(e)}}function r(t){try{s(o.throw(t))}catch(e){a(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,r)}s((o=o.apply(t,e||[])).next())})},i=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function r(t){return function(e){return s([t,e])}}function s(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(r){a=[6,r],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0}),n.rgbToHex=n.hexToRgb=n.addButtonEvent=n.setTexture=n.ScrollAction=n.distanceBetween2Points=n.animateProgressTo=n.NumberArray=n.RegisterDeviceFullScreen=n.RequestDeviceFullScreen=n.GetURLParameter=n.StringFormat=n.UItools=n.RoundDown=n.RoundUp=n.BeautifyNumber=n.Pad=n.Shuffle=n.SkippableDelay=n.DelayForScene=n.Delay=n.AsyncTask=n.GetRandomFloat=n.GetRandomInterger=void 0;var a=t("../Promotion/AdManager");function c(t){return void 0===t&amp;&amp;(t=1),o(this,void 0,void 0,function(){var e,n=this;return i(this,function(){return e=!1,cc.tween(cc.director.getScene()).delay(t).call(function(){e=!0}).start(),[2,new Promise(function(c){setTimeout(function(){return o(n,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return a.default.getInstance().isAdRunningOrNot()||a.default.getInstance().isSwitchTab||0==e?[4,r(1)]:[3,2];case 1:return t.sent(),[3,0];case 2:return c(),[2]}})})},1e3*t)})]})})}function r(t){return void 0===t&amp;&amp;(t=1),o(this,void 0,void 0,function(){return i(this,function(){return[2,new Promise(function(e){setTimeout(function(){e()},1e3*t)})]})})}function s(){cc.view.enableAutoFullScreen(!0)}function u(t){var e=t.toString(16);return 1==e.length?"0"+e:e}n.GetRandomInterger=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},n.GetRandomFloat=function(t,e){return Math.random()*(e-t)+t},n.AsyncTask=function(t){return o(this,void 0,void 0,function(){return i(this,function(){return[2,new Promise(function(e){t(e)})]})})},n.Delay=c,n.DelayForScene=r,n.SkippableDelay=function(t,e){return void 0===t&amp;&amp;(t=1),o(this,void 0,void 0,function(){var n=this;return i(this,function(){return t&lt;=0?[2]:[2,new Promise(function(r){setTimeout(function(){return o(n,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return a.default.getInstance().isAdRunningOrNot()||a.default.getInstance().isSwitchTab?[4,c(1)]:[3,2];case 1:return t.sent(),[3,0];case 2:return r(),[2]}})})},1e3*t),e&amp;&amp;cc.game.on(e,function(){r()})})]})})},n.Shuffle=function(t){if(null==t)return t;for(var e,n,o=t.length;0!==o;)n=Math.floor(Math.random()*o),e=t[o-=1],t[o]=t[n],t[n]=e;return t},n.Pad=function(t,e){var n="000000000"+t;return n.substr(n.length-e)},n.BeautifyNumber=function(t,e){return 0===t?t.toFixed(e):Number.isInteger(t)?t.toFixed(0):e?t.toFixed(e):t.toString()},n.RoundUp=function(t,e){void 0===e&amp;&amp;(e=2);var n=Math.pow(10,e);return Math.ceil(t*n)/n},n.RoundDown=function(t,e){void 0===e&amp;&amp;(e=2);var n=Math.pow(10,e);return Math.floor(t*n)/n},n.UItools={ChangeButtonSpriteFrame:function(t,e,n){t.normalSprite=e.getSpriteFrame(n.normalSprite),t.pressedSprite=e.getSpriteFrame(n.pressedSprite),t.hoverSprite=e.getSpriteFrame(n.hoverSprite),t.disabledSprite=e.getSpriteFrame(n.disabledSprite)}},n.StringFormat=function(t){for(var e=[],n=1;n&lt;arguments.length;n++)e[n-1]=arguments[n];return t.replace(/{(\d+)}/g,function(t,n){return e[n]||""})},n.GetURLParameter=function(t){var e,n,o=new RegExp("[?|&amp;]"+t+"=([^&amp;;]+?)(&amp;|#|;|$)").exec(location.search);return o&amp;&amp;(e=(o||[,""])[1].replace(/\+/g,"%20"),n=decodeURIComponent(e)),n||null},n.RequestDeviceFullScreen=s,n.RegisterDeviceFullScreen=function(){cc.sys.isMobile&amp;&amp;document.getElementById("GameCanvas").addEventListener("touchend",function(){s()},!1)},n.NumberArray=function(t,e,n,o){var i,a=[],c=!1;if((n||o)&amp;&amp;(c=!0,n||(n=""),o||(o="")),e&lt;t)for(i=t;i&gt;=e;i--)c?a.push(n+i.toString()+o):a.push(i);else for(i=t;i&lt;=e;i++)c?a.push(n+i.toString()+o):a.push(i);return a},n.animateProgressTo=function(t,e,n){void 0===n&amp;&amp;(n=1);var o=0;cc.tween(t).to(n,{fillRange:e},{progress:function(e,n,i,a){return o=cc.misc.lerp(e,n,a),t.fillRange=o,o}}).start()},n.distanceBetween2Points=function(t,e){var n=e.x-t.x,o=e.y-t.y;return Math.sqrt(Math.pow(n,2)+Math.pow(o,2))},n.ScrollAction=function(t){t.scrollToBottom(0,!1),cc.tween(t).delay(.2).call(function(){t.scrollToTop(2,!1)}).start()},n.setTexture=function(t,e){t.getComponent(cc.Sprite).spriteFrame=e.getComponent(cc.Sprite).spriteFrame},n.addButtonEvent=function(t,e,n,o,i){void 0===i&amp;&amp;(i=!0),t.addComponent(cc.Button);var a=new cc.Component.EventHandler;a.target=e,a.component=n,a.handler=o,a.customEventData="";var c=t.getComponent(cc.Button);c.clickEvents.push(a),c.transition=cc.Button.Transition.SCALE,c.enableAutoGrayEffect=i},n.hexToRgb=function(t){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return cc.color(parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16))},n.rgbToHex=function(t,e,n){return"#"+u(t)+u(e)+u(n)},cc._RF.pop()},{"../Promotion/AdManager":"AdManager"}],MainScene:[function(t,e,n){"use strict";cc._RF.push(e,"f06faos3jBPA736HQcj6USt","MainScene");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c},c=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{s(o.next(t))}catch(e){a(e)}}function r(t){try{s(o.throw(t))}catch(e){a(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,r)}s((o=o.apply(t,e||[])).next())})},r=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function r(t){return function(e){return s([t,e])}}function s(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(r){a=[6,r],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0});var s=t("../../../Common/Script/Helper/AudioManager"),u=t("../../../Common/Script/Helper/CocosHelper"),l=t("../../../Common/Script/Helper/HelperTools"),d=t("../../../Common/Script/Promotion/AdManager"),p=cc._decorator,h=p.ccclass,f=(p.property,function(t){function e(){return null!==t&amp;&amp;t.apply(this,arguments)||this}return i(e,t),e.prototype.onLoad=function(){u.default.getInstance(),s.default.getInstance(),s.default.getInstance().add("music_mian",cc.find("Canvas/music").getComponent(cc.AudioSource).clip),s.default.getInstance().playMusic("music_mian",!0)},e.prototype.start=function(){cc.tween(cc.find("Canvas/start")).repeatForever(cc.tween(cc.find("Canvas/start")).to(1,{scale:.9}).to(1,{scale:1}).start()).start()},e.prototype.PlayButton=function(t){return c(this,void 0,void 0,function(){var e;return r(this,function(n){switch(n.label){case 0:return e=t.target,s.default.getInstance().play("game_start_btn"),cc.find("Canvas/start").getComponent(sp.Skeleton).setAnimation(0,"animation2",!1),e.getComponent(cc.Button).interactable=!1,d.default.getInstance().requestAds(),[4,l.Delay(.3)];case 1:return n.sent(),cc.director.loadScene("View1"),[2]}})})},e.prototype.SoundAction=function(t){var e=t.target;0==cc.audioEngine.getEffectsVolume()||0==cc.audioEngine.getMusicVolume()?(cc.audioEngine.setEffectsVolume(1),cc.audioEngine.setMusicVolume(1),e.children[0].active=!0,e.children[1].active=!1,s.default.getInstance().play("effect_button")):(cc.audioEngine.setEffectsVolume(0),cc.audioEngine.setMusicVolume(0),e.children[0].active=!1,e.children[1].active=!0)},e.prototype.getRandomInt=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},a([h],e)}(cc.Component));n.default=f,cc._RF.pop()},{"../../../Common/Script/Helper/AudioManager":"AudioManager","../../../Common/Script/Helper/CocosHelper":"CocosHelper","../../../Common/Script/Helper/HelperTools":"HelperTools","../../../Common/Script/Promotion/AdManager":"AdManager"}],ParticleManager:[function(t,e,n){"use strict";cc._RF.push(e,"cb5f4Yuz99Ca7voW+67fyYf","ParticleManager");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0});var c=cc._decorator,r=c.ccclass,s=c.property,u=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.Particle=null,e.time=.1,e.Times=2,e}return i(e,t),e.prototype.onLoad=function(){},e.prototype.start=function(){var t=this,e=cc.tween(this.node).delay(this.time).call(function(){t.Particle.resetSystem()});cc.tween(this.node).repeat(this.Times,e).start()},a([s(cc.ParticleSystem)],e.prototype,"Particle",void 0),a([s],e.prototype,"time",void 0),a([s()],e.prototype,"Times",void 0),a([r],e)}(cc.Component);n.default=u,cc._RF.pop()},{}],Promotion:[function(t,e,n){"use strict";cc._RF.push(e,"c363esmtuVBDJcSkzRVx80v","Promotion");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c},c=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{s(o.next(t))}catch(e){a(e)}}function r(t){try{s(o.throw(t))}catch(e){a(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,r)}s((o=o.apply(t,e||[])).next())})},r=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function r(t){return function(e){return s([t,e])}}function s(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(r){a=[6,r],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0});var s=t("../Helper/AudioManager"),u=t("../Helper/CocosHelper"),l=t("../Helper/GlobalData"),d=t("../Helper/HelperTools"),p=t("./AdManager"),h=cc._decorator,f=h.ccclass,v=(h.property,function(t){function e(){return null!==t&amp;&amp;t.apply(this,arguments)||this}var n;return i(e,t),n=e,e.prototype.start=function(){n.self=this;var t=this;"promoBack"==t.node.name&amp;&amp;this.setPromoThumb();var e="game";"MainScene"==cc.director.getScene().name&amp;&amp;(e="mainscreen"),this.node.on(cc.Node.EventType.TOUCH_END,function(){YYGGames&amp;&amp;("promoBack"==t.node.name?255==t.node.parent.opacity&amp;&amp;YYGGames.navigate("gameoverscene","relatedgames",YYGGames.forgames[window.relatedThumbNo].id):t.node.parent&amp;&amp;"promotion"==t.node.parent.name?YYGGames.navigate("gameover",t.node.name):YYGGames.navigate(e,t.node.name))},this)},e.prototype.setPromoThumb=function(){var t=this;if("undefined"!=typeof YYGGames&amp;&amp;YYGGames.forgames.length&gt;0){window.relatedThumbNo=u.getRandomNumber(0,YYGGames.forgames.length-1);var e=this,n=YYGGames.forgames[window.relatedThumbNo].thumb;cc.assetManager.loadRemote(n,function(n,o){e.node.parent.opacity=255,cc.find("tex",t.node).getComponent(cc.Sprite).spriteFrame=new cc.SpriteFrame(o)})}},e.prototype.onReplayClick=function(t){return c(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return s.default.getInstance().play("effect_button"),t.target.getComponent(cc.Button).interactable=!1,l.GlobalData.data.flags.isViewDone=[!1,!1,!1,!1,!1],p.default.getInstance().requestAds(),[4,d.Delay(.3)];case 1:return e.sent(),cc.director.loadScene("View1"),[2]}})})},e.self=null,n=a([f],e)}(cc.Component));n.default=v,cc._RF.pop()},{"../Helper/AudioManager":"AudioManager","../Helper/CocosHelper":"CocosHelper","../Helper/GlobalData":"GlobalData","../Helper/HelperTools":"HelperTools","./AdManager":"AdManager"}],RewardFailed:[function(t,e,n){"use strict";cc._RF.push(e,"de049FllctHALvm/i+bzPTu","RewardFailed");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0});var c=t("../Helper/AudioManager"),r=cc._decorator,s=r.ccclass,u=(r.property,function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.safeArea=null,e}return i(e,t),e.prototype.onLoad=function(){},e.prototype.start=function(){cc.game.on("RewarFailed.Open",this.OpenRewardFailed,this),cc.game.on("RewarFailed.Close",this.CloseRewardFailed,this),this.safeArea=this.node.children[0],cc.find("Failclose",this.safeArea).on(cc.Node.EventType.TOUCH_START,this.rewardCloseAction,this)},e.prototype.rewardCloseAction=function(){c.default.getInstance().play("Tap"),this.CloseRewardFailed()},e.prototype.OpenRewardFailed=function(){this.safeArea.active=!0},e.prototype.CloseRewardFailed=function(){this.safeArea&amp;&amp;(this.safeArea.active=!1)},a([s],e)}(cc.Component));n.default=u,cc._RF.pop()},{"../Helper/AudioManager":"AudioManager"}],SessionStorageHelper:[function(t,e,n){"use strict";cc._RF.push(e,"53cd3d1si5Lmoi+9Wy1x3L/","SessionStorageHelper");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0});var c=cc._decorator,r=c.ccclass,s=(c.property,function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.Items=[],e}var n;return i(e,t),n=e,e.getInstace=function(){return null==n.instance&amp;&amp;(n.instance=new n),n.instance},e.prototype.setItem=function(t,e){for(var n=!1,o=0;o&lt;this.Items.length;o++)if(this.Items[o].Key==t){n=!0,this.Items[o].Value=e;break}0==n&amp;&amp;this.Items.push({Key:t,Value:e})},e.prototype.getItem=function(t){for(var e=0;e&lt;this.Items.length;e++)if(this.Items[e].Key==t)return this.Items[e].Value},e.prototype.removeItem=function(t){for(var e=0;e&lt;this.Items.length;e++)if(this.Items[e].Key==t){this.Items.splice(e,1);break}},e.prototype.removeAllKeys=function(){this.Items.splice(0,this.Items.length)},e.instance=null,n=a([r],e)}(cc.Component));n.default=s,cc._RF.pop()},{}],ToolMoveMaster:[function(t,e,n){"use strict";cc._RF.push(e,"0c396lhNe1MmoAVPVZlMw1M","ToolMoveMaster");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c},c=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{s(o.next(t))}catch(e){a(e)}}function r(t){try{s(o.throw(t))}catch(e){a(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,r)}s((o=o.apply(t,e||[])).next())})},r=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function r(t){return function(e){return s([t,e])}}function s(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(r){a=[6,r],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0});var s=t("../Promotion/AdManager"),u=t("./AudioManager"),l=t("./UserDrawing"),d=cc._decorator,p=d.ccclass,h=d.property,f=cc.Enum({Began:1,Move:2,End:3,onFixed:4}),v=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.isTouchActive=!0,e.ToolEndMoveTime=.5,e.ToolID=0,e.MoveItem=null,e.destinationNode=null,e.drawing=[],e.MethodOnCalled=4,e.event=null,e.EntryPosition=null,e.ExitPosition=null,e.BeganAction=null,e.EndAction=null,e.Hint=[],e.ClipName="",e.isLoopOnBegan=!0,e.isEndMoveEnable=!0,e.isPositionChanged=!1,e.initPosition=null,e.MoveinitPosition=null,e.DefaultinitPosition=null,e.DestinitPosition=null,e.TapinitPosition=null,e.isTapObject=!1,e.isExitTool=!1,e.isPlaySound=!1,e.isSwipe=!1,e.BeganPoint=1e4,e.Offset=3,e}return i(e,t),e.prototype.onLoad=function(){this.initPosition=this.node.position,this.DefaultinitPosition=this.node.position,this.MoveItem&amp;&amp;(this.MoveinitPosition=this.MoveItem.position),this.destinationNode&amp;&amp;(this.DestinitPosition=this.destinationNode.position),this.registerEvents(),cc.sys.isMobile&amp;&amp;(this.Offset=1.5)},e.prototype.start=function(){},e.prototype.registerEvents=function(){this.node.on(cc.Node.EventType.TOUCH_START,this.TouchStart,this),this.node.on(cc.Node.EventType.TOUCH_MOVE,this.TouchMove,this),this.node.on(cc.Node.EventType.TOUCH_END,this.TouchEnd,this),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this.TouchEnd,this)},e.prototype.BeganActionOnTouch=function(t){if(this.drawing)for(var e=0;e&lt;this.drawing.length;e++)this.drawing[e].setActiveDrawing(!0);this.MoveItem&amp;&amp;(this.node.opacity=0,this.MoveItem.opacity=255,this.MoveItem.active=!0,this.MoveItem.position=cc.v3(this.MoveItem.parent.convertToNodeSpaceAR(t.getLocation())),this.TapinitPosition=this.MoveItem.position,u.default.getInstance().play("effect_takeprops")),cc.Tween.stopAllByTarget(this.node),this.event&amp;&amp;this.MethodOnCalled==f.Began?this.event.emit([this.node,this.ToolID,t.getLocation(),this.MoveItem]):(this.BeganAction&amp;&amp;this.BeganAction.emit([this.node,this.ToolID,t.getLocation(),this.MoveItem]),this.isLoopOnBegan&amp;&amp;this.ClipName&amp;&amp;this.ClipName.length&gt;0&amp;&amp;u.default.getInstance().play(this.ClipName,!0))},e.prototype.TouchStart=function(t){this.isTouchActive&amp;&amp;this.node.active&amp;&amp;255==this.node.opacity&amp;&amp;(this.isPositionChanged=!0,this.node.zIndex=0,this.isTapObject=!0,this.isSwipe=!1,this.BeganPoint=t.getLocationX(),this.isLoopOnBegan&amp;&amp;this.ClipName&amp;&amp;0==this.ClipName.length&amp;&amp;u.default.getInstance().play("FrButton"),this.node.getComponent(cc.Button)?this.isTapObject=!1:"content"!=this.node.parent.name||cc.sys.os===cc.sys.OS_IOS?this.BeganActionOnTouch(t):this.isSwipe=!0)},e.prototype.TouchMove=function(t,e){if(0!=this.isTapObject&amp;&amp;this.isTouchActive&amp;&amp;(0!=this.isSwipe||null!=this.MoveItem)&amp;&amp;this.isTouchActive){if(this.isSwipe){if(!(this.BeganPoint-t.getLocationX()&gt;=this.Offset))return;this.isSwipe=!1,this.BeganActionOnTouch(t)}if(null==this.MoveItem)return;this.MoveItem.position=cc.v3(this.MoveItem.parent.convertToNodeSpaceAR(t.getLocation())),this.event&amp;&amp;this.MethodOnCalled==f.Move&amp;&amp;this.event.emit([this.node,this.ToolID,t.getLocation(),this.MoveItem]);var n=!1;if(this.drawing)for(var o=0;o&lt;this.drawing.length;o++)this.drawing[o].touchMove(t,e),this.drawing[o].DrawNode.getBoundingBoxToWorld().intersects(this.MoveItem.getBoundingBoxToWorld())&amp;&amp;(n=!0);0==this.isLoopOnBegan&amp;&amp;(n&amp;&amp;0==this.isPlaySound?(this.isPlaySound=!0,u.default.getInstance().play(this.ClipName,!0)):0==n&amp;&amp;this.isPlaySound&amp;&amp;(this.isPlaySound=!1,u.default.getInstance().stop(this.ClipName)))}},e.prototype.TouchEnd=function(t){var e=this;if(0!=this.isTapObject&amp;&amp;null!=this.MoveItem&amp;&amp;this.isTouchActive){if(this.drawing)for(var n=0;n&lt;this.drawing.length;n++)this.drawing[n].setActiveDrawing(!1);if(this.destinationNode&amp;&amp;this.destinationNode.getBoundingBoxToWorld().contains(t.getLocation()))return this.destinationNode.active=!0,this.MoveItem.active=!1,this.isTapObject=!1,this.isTouchActive=!1,this.node.active=!1,this.event&amp;&amp;this.MethodOnCalled==f.onFixed&amp;&amp;(this.event.emit([this.node,this.ToolID,t.getLocation(),this.MoveItem]),this.EndAction&amp;&amp;this.EndAction.emit([this.node,this.ToolID,t.getLocation(),this.MoveItem])),void(this.node.active=!1);if(this.ClipName&amp;&amp;this.ClipName.length&gt;0&amp;&amp;u.default.getInstance().stop(this.ClipName),this.isTapObject=!1,this.event&amp;&amp;this.MethodOnCalled==f.End&amp;&amp;this.event.emit([this.node,this.ToolID,t.getLocation(),this.MoveItem]),this.EndAction&amp;&amp;this.EndAction.emit([this.node,this.ToolID,t.getLocation(),this.MoveItem]),this.isTouchActive&amp;&amp;this.isPositionChanged&amp;&amp;this.isEndMoveEnable){this.isPositionChanged=!1;var o=this;0==this.isSwipe&amp;&amp;this.isExitTool&amp;&amp;this.ExitPosition?(this.setActive(!1),this.MoveItem.active=!1,this.node.opacity=255,cc.Tween.stopAllByTarget(this.node),cc.tween(this.node).to(.5,{position:cc.v3(this.ExitPosition)}).call(function(){u.default.getInstance().play("FrEffect6");for(var t=0;t&lt;e.Hint.length;t++)e.Hint[t].active=!1}).start()):0==this.isSwipe&amp;&amp;cc.tween(this.MoveItem).to(this.ToolEndMoveTime,{position:this.TapinitPosition}).call(function(){u.default.getInstance().play("FrEffect6"),o.node.zIndex=0,o.MoveItem.active=!1,e.MoveinitPosition&amp;&amp;(o.MoveItem.position=e.MoveinitPosition),o.node.active=!0,o.node.opacity=255,e.isExitTool&amp;&amp;e.ExitPosition&amp;&amp;(e.setActive(!1),cc.Tween.stopAllByTarget(e.node),cc.tween(e.node).to(.5,{position:cc.v3(e.ExitPosition)}).call(function(){for(var t=0;t&lt;e.Hint.length;t++)e.Hint[t].active=!1}).start())}).start()}else this.node.position=this.MoveItem.position,this.node.zIndex=0,this.MoveItem.active=!1,this.MoveinitPosition&amp;&amp;(this.MoveItem.position=this.MoveinitPosition),this.node.active=!0,this.node.opacity=255}},e.prototype.ShowAds=function(t){return c(this,void 0,void 0,function(){var e;return r(this,function(n){switch(n.label){case 0:return(e=t.target)&amp;&amp;e.childrenCount&gt;0?[4,s.default.getInstance().requestRewardAds(e.children[0])]:[3,2];case 1:return n.sent()&amp;&amp;e.removeComponent(cc.Button),[2];case 2:return[2]}})})},e.prototype.UpdateOffset=function(t){if(this.drawing)for(var e=0;e&lt;this.drawing.length;e++)this.drawing[e].setDrawingOffset(t.width,t.height)},e.prototype.UpdateBrushSize=function(t){if(this.drawing)for(var e=0;e&lt;this.drawing.length;e++)this.drawing[e].setBrushSize(t)},e.prototype.resetComponent=function(){this.MoveItem&amp;&amp;(this.MoveItem.active=!1),this.isTapObject=!1,this.node.opacity=255,this.node.active=!0,this.node.position=this.DefaultinitPosition,this.MoveItem&amp;&amp;(this.MoveItem.position=this.MoveinitPosition),this.isTouchActive=!0},e.prototype.setActive=function(t){this.node.opacity=t?255:254},e.prototype.EntryTool=function(t){var e=this;void 0===t&amp;&amp;(t=0),this.ExitPosition&amp;&amp;(this.node.position=cc.v3(this.ExitPosition)),this.isExitTool=!1,this.EntryPosition&amp;&amp;(u.default.getInstance().play("ToolEntry"),cc.tween(this.node).delay(t).to(.3,{position:cc.v3(this.EntryPosition)}).call(function(){e.setActive(!0);for(var t=0;t&lt;e.Hint.length;t++)e.Hint[t].active=!0,e.Hint[t].opacity=255}).start())},e.prototype.ExitTool=function(t){if(void 0===t&amp;&amp;(t=!1),this.isExitTool=!0,this.isTapObject=!1,t||this.isExitTool&amp;&amp;this.ExitPosition&amp;&amp;null==this.MoveItem){for(var e=0;e&lt;this.Hint.length;e++)this.Hint[e].active=!1;this.ClipName&amp;&amp;this.ClipName.length&gt;0&amp;&amp;u.default.getInstance().stop(this.ClipName),this.setActive(!1),this.node.opacity=255,cc.Tween.stopAllByTarget(this.node),this.MoveItem&amp;&amp;(this.MoveItem.position=cc.v3(45454,455454)),cc.tween(this.node).to(.5,{position:cc.v3(this.ExitPosition)}).start()}},e.prototype.ToolDoneAction=function(){if(this.drawing.length&gt;0)for(var t=0;t&lt;this.drawing.length;t++)this.drawing[t].isErase?(this.drawing[t].clearPicture(),this.drawing[t].isUpdateTexture=!0):this.drawing[t].FillFullTexture()},e.prototype.resetTexture=function(){if(this.drawing.length&gt;0)for(var t=0;t&lt;this.drawing.length;t++)this.drawing[t].resetPicture()},e.prototype.isToolDone=function(){if(this.drawing.length&gt;0){for(var t=!0,e=0;e&lt;this.drawing.length;e++)if(this.drawing[e].isErase){if(this.drawing[e].getDrawingPercentage()&gt;10){t=!1;break}}else if(this.drawing[e].getDrawingPercentage()&lt;90){t=!1;break}return t}return!1},a([h()],e.prototype,"isTouchActive",void 0),a([h()],e.prototype,"ToolEndMoveTime",void 0),a([h()],e.prototype,"ToolID",void 0),a([h(cc.Node)],e.prototype,"MoveItem",void 0),a([h(cc.Node)],e.prototype,"destinationNode",void 0),a([h([l.default])],e.prototype,"drawing",void 0),a([h({type:f})],e.prototype,"MethodOnCalled",void 0),a([h(cc.Component.EventHandler)],e.prototype,"event",void 0),a([h(cc.Vec2)],e.prototype,"EntryPosition",void 0),a([h(cc.Vec2)],e.prototype,"ExitPosition",void 0),a([h(cc.Component.EventHandler)],e.prototype,"BeganAction",void 0),a([h(cc.Component.EventHandler)],e.prototype,"EndAction",void 0),a([h([cc.Node])],e.prototype,"Hint",void 0),a([h(cc.String)],e.prototype,"ClipName",void 0),a([h(cc.Boolean)],e.prototype,"isLoopOnBegan",void 0),a([h(cc.Boolean)],e.prototype,"isEndMoveEnable",void 0),a([p],e)}(cc.Component);n.default=v,cc._RF.pop()},{"../Promotion/AdManager":"AdManager","./AudioManager":"AudioManager","./UserDrawing":"UserDrawing"}],UserDrawing:[function(t,e,n){"use strict";cc._RF.push(e,"7423cdpXoxPF6EiCt9QdLYC","UserDrawing");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0}),n.USEREVENT=void 0;var c=t("./DrawingManager"),r=cc._decorator,s=r.ccclass,u=r.property;(n.USEREVENT||(n.USEREVENT={})).UPDATEDRAWING="UpdateDrawing";var l=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.isActiveDrawing=!0,e.brush=null,e.brushsize=30,e.isErase=!1,e.isRepeatPattern=!1,e.DrawingOffset=cc.v2(0,0),e.DrawingTexture=[],e.DefaultTexture=null,e.selectedPattern=0,e.isUpdateTexture=!1,e.Drawing=null,e}return i(e,t),e.prototype.onLoad=function(){this.init(),this.Drawing=new c.default,this.Drawing.initWithData(this.node),this.DefaultTexture&amp;&amp;this.Drawing.loadTextureFrame(this.DefaultTexture.getTexture().nativeUrl,0,this.isRepeatPattern);for(var t=0;t&lt;this.DrawingTexture.length;t++)this.Drawing.loadTextureFrame(this.DrawingTexture[t].getTexture().nativeUrl,t+1,this.isRepeatPattern);this.setEraseOn(this.isErase)},e.prototype.start=function(){this.setActiveDrawing(this.isActiveDrawing)},e.prototype.init=function(){this.DrawNode=this.node,this.UserCanvas=document.createElement("canvas"),this.UserContext=this.UserCanvas.getContext("2d"),this.UserCanvas.width=this.node.width,this.UserCanvas.height=this.node.height,this.CanvasWidth=this.node.width,this.CanvasHeight=this.node.height,this.UserContext.clearRect(0,0,this.CanvasWidth,this.CanvasHeight),this.BrushImage=new Image,this.BrushImage.onload=function(){},this.BrushImage.src=this.brush.getTexture().nativeUrl},e.prototype.touchMove=function(t){var e=t.getLocation(),n=t.getPreviousLocation();e.x=e.x-this.DrawingOffset.x,n.x=n.x-this.DrawingOffset.x,e.y=e.y-this.DrawingOffset.y,n.y=n.y-this.DrawingOffset.y;var o=this.DrawNode.convertToNodeSpaceAR(e),i=this.DrawNode.getContentSize();e=cc.v2(o.x+i.width/2,i.height-(o.y+i.height/2));var a=this.DrawNode.convertToNodeSpaceAR(n);n=cc.v2(a.x+i.width/2,i.height-(a.y+i.height/2));for(var c=Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2)),r=0;r&lt;c;r+=1){var s=n.x-e.x,u=n.y-e.y,l=r/c,d=cc.v2(e.x+s*l,e.y+u*l);0==this.brushsize?this.UserContext.drawImage(this.BrushImage,d.x-this.brushsize/2,d.y-this.brushsize/2):this.UserContext.drawImage(this.BrushImage,d.x-this.brushsize/2,d.y-this.brushsize/2,this.brushsize,this.brushsize)}this.isUpdateTexture=!0},e.prototype.setActiveDrawing=function(t){this.isActiveDrawing!=t&amp;&amp;(this.isActiveDrawing=t,this.isActiveDrawing?(this.node.on(cc.Node.EventType.TOUCH_MOVE,this.touchMove,this),this.node.on(cc.Node.EventType.TOUCH_START,this.touchMove,this)):(this.node.off(cc.Node.EventType.TOUCH_MOVE),this.node.off(cc.Node.EventType.TOUCH_START)))},e.prototype.clearRect=function(){this.UserContext.clearRect(0,0,this.CanvasWidth,this.CanvasHeight),this.Drawing.updateCanvas(this.selectedPattern,this.getImageData())},e.prototype.clearPicture=function(){this.Drawing.clearAll()},e.prototype.FillFullTexture=function(){this.UserContext.drawImage(this.BrushImage,0,0,1e3,1e3),this.UserContext.beginPath(),this.UserContext.rect(0,0,this.CanvasWidth,this.CanvasHeight),this.UserContext.fillStyle="red",this.UserContext.fill(),this.isUpdateTexture=!0},e.prototype.resetPicture=function(){this.Drawing.resetTextureFrame(this.selectedPattern)},e.prototype.setDrawingOffset=function(t,e){this.DrawingOffset=cc.v2(t,e)},e.prototype.getImageData=function(){return this.UserContext.getImageData(0,0,this.CanvasWidth,this.CanvasHeight)},e.prototype.setBrushSize=function(t){this.brushsize=t},e.prototype.setEraseOn=function(t){this.Drawing.setEraseOn(t),this.isErase=t},e.prototype.setPatternIndex=function(t){t&gt;this.DrawingTexture.length?alert("Index must spriteframe Range"):(console.log("index",t),this.selectedPattern=t)},e.prototype.getDrawingPercentage=function(){return this.Drawing.getPercentage(this.selectedPattern)},e.prototype.update=function(){this.isUpdateTexture&amp;&amp;(this.Drawing.updateCanvas(this.selectedPattern,this.getImageData()),this.isUpdateTexture=!1,this.clearRect())},a([u()],e.prototype,"isActiveDrawing",void 0),a([u(cc.SpriteFrame)],e.prototype,"brush",void 0),a([u()],e.prototype,"brushsize",void 0),a([u()],e.prototype,"isErase",void 0),a([u()],e.prototype,"isRepeatPattern",void 0),a([u(cc.Vec2)],e.prototype,"DrawingOffset",void 0),a([u([cc.SpriteFrame])],e.prototype,"DrawingTexture",void 0),a([u(cc.SpriteFrame)],e.prototype,"DefaultTexture",void 0),a([u()],e.prototype,"selectedPattern",void 0),a([s],e)}(cc.Component);n.default=l,cc._RF.pop()},{"./DrawingManager":"DrawingManager"}],View1:[function(t,e,n){"use strict";cc._RF.push(e,"16414zOUs9DlqozLcnaIgft","View1");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c},c=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{s(o.next(t))}catch(e){a(e)}}function r(t){try{s(o.throw(t))}catch(e){a(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,r)}s((o=o.apply(t,e||[])).next())})},r=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function r(t){return function(e){return s([t,e])}}function s(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(r){a=[6,r],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0});var s=t("../../../Common/Script/Helper/AudioManager"),u=t("../../../Common/Script/Helper/HelperTools"),l=t("../../../Common/Script/Promotion/AdManager"),d=cc._decorator,p=d.ccclass,h=d.property,f=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.freezeItems=null,e.tableItems=null,e.progress=null,e.hand=null,e.moveNode=null,e.canMove=!1,e.moveIndex=-1,e.pickPos=null,e.completeCounter=0,e}return i(e,t),e.prototype.start=function(){this.node.on(cc.Node.EventType.TOUCH_START,this.touchBegin,this),this.node.on(cc.Node.EventType.TOUCH_MOVE,this.touchMove,this),this.node.on(cc.Node.EventType.TOUCH_END,this.touchEnd,this),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this.touchCanceled,this)},e.prototype.turnOff=function(){this.node.off(cc.Node.EventType.TOUCH_START,this.touchBegin,this),this.node.off(cc.Node.EventType.TOUCH_MOVE,this.touchMove,this),this.node.off(cc.Node.EventType.TOUCH_END,this.touchEnd,this),this.node.off(cc.Node.EventType.TOUCH_CANCEL,this.touchCanceled,this)},e.prototype.showPickAndMoveHint=function(t,e){cc.tween(this.hand).repeatForever(cc.tween(this.hand).set({position:t}).delay(.1).to(1,{position:e}).delay(.1)).start()},e.prototype.touchBegin=function(t){if(cc.find("Canvas/door").active&amp;&amp;cc.find("Canvas/door").getBoundingBoxToWorld().contains(t.getLocation()))s.default.getInstance().play("effect_openfridge"),cc.find("Canvas/door").active=!1,this.hand.getComponent(cc.Animation).stop(),this.showPickAndMoveHint(cc.v3(83,189,0),cc.v3(-145,-218,0));else for(var e=0;e&lt;this.freezeItems.children.length;e++){var n=this.freezeItems.children[e];if(255==n.opacity&amp;&amp;cc.rect(n.getPosition().x-25,n.getPosition().y,50,150).contains(this.node.convertToNodeSpaceAR(t.getLocation()))){this.canMove=!0,this.moveIndex=e,this.pickPos=n.position,this.moveNode=this.freezeItems.children[this.moveIndex],n.zIndex=1e3,s.default.getInstance().play("effect_ladlejam");break}}},e.prototype.touchMove=function(t){var e=this.node.convertToNodeSpaceAR(t.getLocation());this.canMove&amp;&amp;this.moveNode.setPosition(e)},e.prototype.touchEnd=function(t){if(this.canMove){for(var e=0;e&lt;this.tableItems.children.length;e++){var n=this.tableItems.children[e];if(n.name==this.moveNode.name&amp;&amp;n.getBoundingBox().contains(n.parent.convertToNodeSpaceAR(t.getLocation()))){this.moveNode.zIndex=e,s.default.getInstance().play("effect_progressbargrow"),s.default.getInstance().play("effect_propsputright"),this.hand.active=!1,n.active=!1,this.moveNode.setPosition(n.getPosition()),this.moveNode.opacity=254,this.canMove=!1;var o=this.progress.fillRange;return cc.tween(this.progress).to(.2,{fillRange:o+.2},{easing:"sineIn"}).start(),this.completeCounter++,void(5==this.completeCounter&amp;&amp;(s.default.getInstance().play("item_welldone"),cc.find("Canvas/welldone").active=!0,cc.find("Canvas/next").active=!0,this.turnOff()))}}this.canMove=!1,cc.Tween.stopAllByTarget(this.moveNode),cc.tween(this.moveNode).to(.2,{position:this.pickPos},{easing:"sineIn"}).start(),this.moveIndex=-1,this.moveNode=null}},e.prototype.touchCanceled=function(){},e.prototype.onNextClick=function(t){return c(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return t.target.getComponent(cc.Button).interactable=!1,l.default.getInstance().requestAds(),[4,u.Delay(.3)];case 1:return e.sent(),cc.director.loadScene("View2"),[2]}})})},a([h(cc.Node)],e.prototype,"freezeItems",void 0),a([h(cc.Node)],e.prototype,"tableItems",void 0),a([h(cc.Sprite)],e.prototype,"progress",void 0),a([h(cc.Node)],e.prototype,"hand",void 0),a([p],e)}(cc.Component);n.default=f,cc._RF.pop()},{"../../../Common/Script/Helper/AudioManager":"AudioManager","../../../Common/Script/Helper/HelperTools":"HelperTools","../../../Common/Script/Promotion/AdManager":"AdManager"}],View2:[function(t,e,n){"use strict";cc._RF.push(e,"d0a05B9yOlFyogF9odm5sLE","View2");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c},c=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{s(o.next(t))}catch(e){a(e)}}function r(t){try{s(o.throw(t))}catch(e){a(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,r)}s((o=o.apply(t,e||[])).next())})},r=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function r(t){return function(e){return s([t,e])}}function s(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(r){a=[6,r],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0});var s=t("../../../Common/Script/Helper/AudioManager"),u=t("../../../Common/Script/Helper/CocosHelper"),l=t("../../../Common/Script/Helper/HelperTools"),d=t("../../../Common/Script/Promotion/AdManager"),p=cc._decorator,h=p.ccclass,f=p.property,v=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.tableItems=null,e.intersectNode=null,e.hand=null,e.toolUsePos=[],e.canMove=!1,e.moveIndex=1,e.pickPos=null,e.completeCounter=0,e}return i(e,t),e.prototype.onLoad=function(){this.registerEvents()},e.prototype.start=function(){this.tableItems.children.forEach(function(t){console.log("------------- ",t.name,"---------"),u.PrintAllAnimationNames(t.getComponent(sp.Skeleton))}),this.toolPickAnimation(),this.insertToolUsePosition(),this.showPickAndMoveHint(cc.v3(-140,-160,0),cc.v3(58,-110,0))},e.prototype.insertToolUsePosition=function(){this.toolUsePos.push(cc.v3(42,-68,0)),this.toolUsePos.push(cc.v3(-90,-114,0)),this.toolUsePos.push(cc.v3(-48,-10,0)),this.toolUsePos.push(cc.v3(-70,-108,0)),this.toolUsePos.push(cc.v3(3,-70,0))},e.prototype.registerEvents=function(){this.node.on(cc.Node.EventType.TOUCH_START,this.TouchStart,this),this.node.on(cc.Node.EventType.TOUCH_MOVE,this.TouchMove,this),this.node.on(cc.Node.EventType.TOUCH_END,this.TouchEnd,this),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this.TouchEnd,this)},e.prototype.toolUseAnim=function(){var t=this,e=this.tableItems.getChildByName(this.moveIndex.toString());switch(e.name){case"1":s.default.getInstance().play("effect_pouringwater"),this.hand.active=!1,cc.find("Canvas/TableItems/1/ATTACHED_NODE_TREE/ATTACHED_NODE:root/ATTACHED_NODE:niunai/ATTACHED_NODE:bone3/ATTACHED_NODE:effect/effect_niunai").active=!0,e.getComponent(sp.Skeleton).setAnimation(0,"niunai_daocailiao",!1);var n=u.getSpineAnimationDuration(e.getComponent(sp.Skeleton),"niunai_daocailiao");cc.tween(e).delay(n).by(.5,{x:-500},{easing:"sineIn"}).start(),cc.tween(cc.find("Canvas/bowalitem/niunai")).to(n,{scale:.75,y:-144.157},{easing:"sineIn"}).call(function(){t.moveIndex++,t.toolPickAnimation()}).start();break;case"2":n=u.getSpineAnimationDuration(e.getComponent(sp.Skeleton),"tang_daocailiao"),e.getComponent(sp.Skeleton).setAnimation(0,"tang_daocailiao",!1),cc.tween(e).delay(n).by(.5,{x:-500},{easing:"sineIn"}).start();var o=cc.find("Canvas/TableItems/2/ATTACHED_NODE_TREE/ATTACHED_NODE:root/ATTACHED_NODE:tang/ATTACHED_NODE:bone2/effect_shatang");cc.tween(o).delay(n/3).set({active:!0}).delay(n/4).call(function(){s.default.getInstance().play("effect_spillsuger"),o.getComponent(cc.ParticleSystem).resetSystem()}).delay(n/4).call(function(){s.default.getInstance().play("effect_spillsuger"),o.getComponent(cc.ParticleSystem).resetSystem()}).set({active:!1}).call(function(){t.moveIndex++,t.toolPickAnimation()}).start();break;case"3":s.default.getInstance().play("effect_pouringicecreampowder"),n=u.getSpineAnimationDuration(e.getComponent(sp.Skeleton),"biqilinfen_daocailiao"),e.getComponent(sp.Skeleton).setAnimation(0,"biqilinfen_daocailiao",!1),cc.tween(e).delay(n).by(.5,{x:-500},{easing:"sineIn"}).call(function(){t.moveIndex++,t.toolPickAnimation()}).start(),cc.find("Canvas/TableItems/3/ATTACHED_NODE_TREE/ATTACHED_NODE:root/ATTACHED_NODE:bingqilinfen/ATTACHED_NODE:bone/ATTACHED_NODE:effect/effect_bingqilinfen").active=!0,cc.tween(cc.find("Canvas/bowalitem/mianfen")).delay(.5).to(1,{opacity:255},{easing:"sineIn"}).start();break;case"4":s.default.getInstance().play("effect_pouringjam"),n=u.getSpineAnimationDuration(e.getComponent(sp.Skeleton),"guojiang_daocailiao"),e.getComponent(sp.Skeleton).setAnimation(0,"guojiang_daocailiao",!1),cc.tween(e).delay(n).by(.5,{x:-500},{easing:"sineIn"}).call(function(){t.moveIndex++,t.toolPickAnimation()}).start();var i=cc.find("Canvas/TableItems/4/ATTACHED_NODE_TREE/ATTACHED_NODE:root/ATTACHED_NODE:shaozi/ATTACHED_NODE:effect/effect_guojiang");cc.tween(i).delay(.5).set({active:!0}).start(),cc.tween(cc.find("Canvas/bowalitem/ani_item_guojiang")).delay(.5).to(1,{opacity:255},{easing:"sineIn"}).start();break;case"5":n=u.getSpineAnimationDuration(e.getComponent(sp.Skeleton),"jidan_daocailiao"),e.getComponent(sp.Skeleton).setAnimation(0,"jidan_daocailiao",!1),cc.tween(e).delay(n/2).call(function(){s.default.getInstance().play("effect_kickegg")}).delay(n/2).by(.5,{x:-500},{easing:"sineIn"}).call(function(){t.moveIndex++,cc.find("Canvas/menu_frame_fruit").active=!0,s.default.getInstance().play("item_nextaddfruitbuttonapper")}).start(),cc.tween(cc.find("Canvas/bowalitem/jidan")).delay(.1).to(.2,{opacity:255},{easing:"sineIn"}).start()}},e.prototype.TouchStart=function(t){if(console.log("touchBegin"),!(this.moveIndex&gt;5)){var e=this.node.convertToNodeSpaceAR(t.getLocation()),n=this.tableItems.getChildByName(this.moveIndex.toString());n.getChildByName("intersect").getBoundingBoxToWorld().contains(t.getLocation())&amp;&amp;(255==n.opacity?(n.zIndex=4,this.canMove=!0,this.pickPos=n.position,n.setPosition(e),this.toolInMoveAnimation(),this.hand.active=!1,s.default.getInstance().play("effect_ladlejam")):254==n.opacity&amp;&amp;(n.opacity=253,this.toolUseAnim()))}},e.prototype.TouchMove=function(t){var e=this.node.convertToNodeSpaceAR(t.getLocation()),n=this.tableItems.getChildByName(this.moveIndex.toString());this.canMove&amp;&amp;n.setPosition(e)},e.prototype.TouchEnd=function(t){var e=this,n=this.tableItems.getChildByName(this.moveIndex.toString());if(this.canMove){if(this.canMove=!1,this.intersectNode.getBoundingBoxToWorld().contains(t.getLocation())){if(n.setPosition(this.toolUsePos[Number(n.name)-1]),n.opacity=254,this.toolScaleAnim(),1==this.moveIndex){cc.Tween.stopAllByTarget(this.hand);var o=n.getPosition();this.hand.setPosition(o.add(cc.v2(40,-10))),this.hand.getComponent(cc.Animation).play(),this.hand.active=!0}else this.hand.active=!1;return}cc.Tween.stopAllByTarget(n),cc.tween(n).to(.2,{position:this.pickPos},{easing:"sineIn"}).call(function(){1==e.moveIndex&amp;&amp;(e.hand.active=!0),e.toolPickAnimation()}).start()}},e.prototype.toolPickAnimation=function(){var t=this.tableItems.getChildByName(this.moveIndex.toString());switch(t.name){case"1":t.getComponent(sp.Skeleton).setAnimation(0,"niunai_huangdong_tishi",!0);break;case"2":t.getComponent(sp.Skeleton).setAnimation(0,"tang_huangdong_tishi",!0);break;case"3":t.getComponent(sp.Skeleton).setAnimation(0,"biqilinfen_huangdong_tishi",!0);break;case"4":t.getComponent(sp.Skeleton).setAnimation(0,"guojiang_tishi",!0);break;case"5":t.getComponent(sp.Skeleton).setAnimation(0,"jidan_tishi",!0)}},e.prototype.toolInMoveAnimation=function(){var t=this.tableItems.getChildByName(this.moveIndex.toString());switch(t.name){case"1":t.getComponent(sp.Skeleton).setAnimation(0,"niunai_naqi",!0);break;case"2":t.getComponent(sp.Skeleton).setAnimation(0,"tang_naqi",!0);break;case"3":t.getComponent(sp.Skeleton).setAnimation(0,"biqilinfen_naqi",!0);break;case"4":t.getComponent(sp.Skeleton).setAnimation(0,"guojiang_naqi",!0);break;case"5":t.getComponent(sp.Skeleton).setAnimation(0,"jidan_naqi",!0)}},e.prototype.toolStandAnimation=function(){var t=this.tableItems.getChildByName(this.moveIndex.toString());switch(t.name){case"1":t.getComponent(sp.Skeleton).setAnimation(0,"niunai_stand",!0);break;case"2":t.getComponent(sp.Skeleton).setAnimation(0,"tang_stand",!0);break;case"3":t.getComponent(sp.Skeleton).setAnimation(0,"biqilinfen_stand",!0);break;case"4":t.getComponent(sp.Skeleton).setAnimation(0,"guojiang_stand",!0);break;case"5":t.getComponent(sp.Skeleton).setAnimation(0,"jidan_stand",!0)}},e.prototype.toolScaleAnim=function(){var t=this.tableItems.getChildByName(this.moveIndex.toString());switch(t.name){case"1":t.getComponent(sp.Skeleton).setAnimation(0,"niunai_xuankongtishi",!0);break;case"2":t.getComponent(sp.Skeleton).setAnimation(0,"tang_huangdong_tishi",!0);break;case"3":t.getComponent(sp.Skeleton).setAnimation(0,"biqilinfen_xuankongtishi",!0);break;case"4":t.getComponent(sp.Skeleton).setAnimation(0,"guojiang_tishi",!0);break;case"5":t.getComponent(sp.Skeleton).setAnimation(0,"jidan_tishi",!0)}},e.prototype.onNextClick=function(t){return c(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return t.target.getComponent(cc.Button).interactable=!1,d.default.getInstance().requestAds(),[4,l.Delay(.3)];case 1:return e.sent(),cc.director.loadScene("View3"),[2]}})})},e.prototype.showPickAndMoveHint=function(t,e){cc.tween(this.hand).repeatForever(cc.tween(this.hand).set({position:t}).delay(.1).to(1,{position:e}).delay(.1)).start()},a([f(cc.Node)],e.prototype,"tableItems",void 0),a([f(cc.Node)],e.prototype,"intersectNode",void 0),a([f(cc.Node)],e.prototype,"hand",void 0),a([h],e)}(cc.Component);n.default=v,cc._RF.pop()},{"../../../Common/Script/Helper/AudioManager":"AudioManager","../../../Common/Script/Helper/CocosHelper":"CocosHelper","../../../Common/Script/Helper/HelperTools":"HelperTools","../../../Common/Script/Promotion/AdManager":"AdManager"}],View3:[function(t,e,n){"use strict";cc._RF.push(e,"34c7cbK81RLDrQYTqj0Nlny","View3");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c},c=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{s(o.next(t))}catch(e){a(e)}}function r(t){try{s(o.throw(t))}catch(e){a(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,r)}s((o=o.apply(t,e||[])).next())})},r=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function r(t){return function(e){return s([t,e])}}function s(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(r){a=[6,r],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0});var s=t("../../../Common/Script/Helper/GlobalData"),u=t("../../../Common/Script/Helper/HelperTools"),l=t("../../../Common/Script/Promotion/AdManager"),d=cc._decorator,p=d.ccclass,h=(d.property,function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.PanelCounter=1,e.canMoveStep=-1,e.SelectedItem=-1,e.PickPOS=null,e.DotLinePOS=[],e.KniefPOS=[],e.DotLineAngle=[],e.SelectedFruit=-1,e.CuttingStep=0,e}return i(e,t),e.prototype.onLoad=function(){},e.prototype.start=function(){cc.find("Canvas/Background/zhuangshi_btn_left_1").zIndex=2,cc.find("Canvas/Background/zhuangshi_btn_right_1").zIndex=2,cc.find("Canvas/Background/ani_tishi_03").zIndex=9,cc.find("Canvas/Background/ui_item_dao_1").zIndex=10,cc.find("Canvas").on(cc.Node.EventType.TOUCH_START,this.tapStart,this),cc.find("Canvas").on(cc.Node.EventType.TOUCH_MOVE,this.tapMove,this),cc.find("Canvas").on(cc.Node.EventType.TOUCH_END,this.tapEnd,this),cc.find("Canvas").on(cc.Node.EventType.TOUCH_CANCEL,this.tapEnd,this)},e.prototype.hideAllFruit=function(){for(var t=1;t&lt;=9;t++)for(var e=1;e&lt;=3;e++)cc.find("Canvas/Background/Fr"+t+"_"+e).active=!1},e.prototype.setValues=function(){var t=[];for(t.push(cc.v2(-24,-38)),t.push(cc.v2(-14,-58)),t.push(cc.v2(-5,-53)),t.push(cc.v2(-10,-58)),t.push(cc.v2(-22,-58)),t.push(cc.v2(-12,-63)),t.push(cc.v2(-11,-51)),t.push(cc.v2(-12,-66)),t.push(cc.v2(-12,-58));this.DotLinePOS.length&gt;0;)this.DotLinePOS.pop();for(;this.DotLineAngle.length&gt;0;)this.DotLineAngle.pop();for(;this.KniefPOS.length&gt;0;)this.KniefPOS.pop();1==this.SelectedFruit?(this.DotLinePOS.push(cc.v2(28,-9)),this.DotLinePOS.push(cc.v2(-74,-19)),this.DotLineAngle.push(16),this.DotLineAngle.push(16),this.KniefPOS.push(cc.v2(73,15)),this.KniefPOS.push(cc.v2(-17,-10))):2==this.SelectedFruit?(this.DotLinePOS.push(cc.v2(49,-59)),this.DotLinePOS.push(cc.v2(-63,-59)),this.DotLineAngle.push(16),this.DotLineAngle.push(16),this.KniefPOS.push(cc.v2(82,-35)),this.KniefPOS.push(cc.v2(-31,-46))):3==this.SelectedFruit?(this.DotLinePOS.push(cc.v2(48,-42)),this.DotLinePOS.push(cc.v2(-44,-57)),this.DotLineAngle.push(16),this.DotLineAngle.push(16),this.KniefPOS.push(cc.v2(80,-25)),this.KniefPOS.push(cc.v2(-21,-35))):4==this.SelectedFruit?(this.DotLinePOS.push(cc.v2(48,-54)),this.DotLinePOS.push(cc.v2(-56,-62)),this.DotLineAngle.push(16),this.DotLineAngle.push(16),this.KniefPOS.push(cc.v2(73,-28)),this.KniefPOS.push(cc.v2(-29,-25))):5==this.SelectedFruit?(this.DotLinePOS.push(cc.v2(44,-75)),this.DotLinePOS.push(cc.v2(-67,-84)),this.DotLineAngle.push(16),this.DotLineAngle.push(16),this.KniefPOS.push(cc.v2(94,-85)),this.KniefPOS.push(cc.v2(-33,-88))):6==this.SelectedFruit?(this.DotLinePOS.push(cc.v2(48,-57)),this.DotLinePOS.push(cc.v2(-62,-70)),this.DotLineAngle.push(16),this.DotLineAngle.push(16),this.KniefPOS.push(cc.v2(82,-41)),this.KniefPOS.push(cc.v2(-36,-58))):7==this.SelectedFruit?(this.DotLinePOS.push(cc.v2(48,-37)),this.DotLinePOS.push(cc.v2(-58,-64)),this.DotLineAngle.push(16),this.DotLineAngle.push(16),this.KniefPOS.push(cc.v2(70,-3)),this.KniefPOS.push(cc.v2(-26,-35))):8==this.SelectedFruit?(this.DotLinePOS.push(cc.v2(44,-52)),this.DotLinePOS.push(cc.v2(-63,-65)),this.DotLineAngle.push(16),this.DotLineAngle.push(16),this.KniefPOS.push(cc.v2(85,-53)),this.KniefPOS.push(cc.v2(-28,-56))):9==this.SelectedFruit&amp;&amp;(this.DotLinePOS.push(cc.v2(44,-47)),this.DotLinePOS.push(cc.v2(-57,-67)),this.DotLineAngle.push(16),this.DotLineAngle.push(16),this.KniefPOS.push(cc.v2(78,-24)),this.KniefPOS.push(cc.v2(-26,-27)));for(var e=1;e&lt;=3;e++)cc.find("Canvas/Background/Fr"+this.SelectedFruit+"_"+e).zIndex=2*e,cc.find("Canvas/Background/Fr"+this.SelectedFruit+"_"+e).setPosition(t[this.SelectedFruit-1]),cc.find("Canvas/Background/Fr"+this.SelectedFruit+"_"+e).angle=0},e.prototype.btnPrev=function(){this.PanelCounter&gt;1&amp;&amp;(this.PanelCounter--,cc.find("Canvas/Background/zhuangshi_btn_right_1/shuiguo_btn_you").active=!1,cc.find("Canvas/Background/Panel").stopAllActions(),2==this.PanelCounter?cc.find("Canvas/Background/Panel").runAction(cc.moveTo(.5,cc.v2(-591,0))):1==this.PanelCounter&amp;&amp;(cc.find("Canvas/Background/Panel").runAction(cc.moveTo(.5,cc.v2(0,0))),cc.find("Canvas/Background/zhuangshi_btn_left_1/shuiguo_btn_zuo").active=!0))},e.prototype.btnNext=function(){this.PanelCounter&lt;3&amp;&amp;(this.PanelCounter++,cc.find("Canvas/Background/zhuangshi_btn_left_1/shuiguo_btn_zuo").active=!1,cc.find("Canvas/Background/Panel").stopAllActions(),2==this.PanelCounter?cc.find("Canvas/Background/Panel").runAction(cc.moveTo(.5,cc.v2(-591,0))):3==this.PanelCounter&amp;&amp;(cc.find("Canvas/Background/Panel").runAction(cc.moveTo(.5,cc.v2(-1196,0))),cc.find("Canvas/Background/zhuangshi_btn_right_1/shuiguo_btn_you").active=!0))},e.prototype.tapStart=function(t){for(var e=t.getLocation(),n=1;n&lt;=9;n++)0==cc.find("Canvas/next").active&amp;&amp;cc.find("Canvas/Background/Panel/ui_item_fruit_"+n).getBoundingBoxToWorld().contains(e)&amp;&amp;0==cc.find("Canvas/Background/Panel/ui_item_fruit_"+n).getNumberOfRunningActions()&amp;&amp;255==cc.find("Canvas/Background/Panel/ui_item_fruit_"+n).opacity&amp;&amp;(cc.find("Canvas/hand").active&amp;&amp;(cc.find("Canvas/hand").active=!1),this.PlaySound("effect_takeprops"),this.PickPOS=cc.find("Canvas/Background/Panel/ui_item_fruit_"+n).getPosition(),this.SelectedItem=n,this.canMoveStep=1,cc.find("Canvas/Background/Panel").zIndex=11,cc.find("Canvas/Background/Panel/ui_item_fruit_"+n).zIndex=10,cc.find("Canvas/Background/Panel/ui_item_fruit_"+n).setPosition(cc.find("Canvas/Background/Panel/ui_item_fruit_"+n).getParent().convertToNodeSpaceAR(e)));cc.find("Canvas/Background/ui_item_dao_1").getBoundingBoxToWorld().contains(e)&amp;&amp;cc.find("Canvas/Background/ui_item_dao_1").active&amp;&amp;-1!=this.SelectedFruit&amp;&amp;(this.PlaySound("effect_takeprops"),this.PickPOS=cc.find("Canvas/Background/ui_item_dao_1").getPosition(),this.canMoveStep=2,cc.find("Canvas/Background/ui_item_dao_1").active=!1,cc.find("Canvas/Background/ani_item_dao_1").stopAllActions(),cc.find("Canvas/Background/ani_item_dao_1").zIndex=10,cc.find("Canvas/Background/ani_item_dao_1").active=!0,cc.find("Canvas/Background/ani_item_dao_1").setPosition(cc.find("Canvas/Background/ani_item_dao_1").getParent().convertToNodeSpaceAR(e)),cc.find("Canvas/Background/ani_tishi_03").active=!0,cc.find("Canvas/Background/ani_tishi_03").stopAllActions(),cc.find("Canvas/Background/ani_tishi_03").setPosition(this.DotLinePOS[this.CuttingStep]),cc.find("Canvas/Background/ani_tishi_03").angle=this.DotLineAngle[this.CuttingStep],cc.find("Canvas/Background/ani_tishi_03").runAction(cc.repeatForever(cc.sequence(cc.scaleTo(.1,1.6),cc.scaleTo(.1,1.5)))))},e.prototype.tapMove=function(t){var e=t.getLocation();1==this.canMoveStep?cc.find("Canvas/Background/Panel/ui_item_fruit_"+this.SelectedItem).setPosition(cc.find("Canvas/Background/Panel/ui_item_fruit_"+this.SelectedItem).getParent().convertToNodeSpaceAR(e)):2==this.canMoveStep&amp;&amp;cc.find("Canvas/Background/ani_item_dao_1").setPosition(cc.find("Canvas/Background/ani_item_dao_1").getParent().convertToNodeSpaceAR(e))},e.prototype.tapEnd=function(t){var e=this;if(t.getLocation(),1==this.canMoveStep){var n=this.PickPOS,o=this.SelectedItem;if(cc.find("Canvas/Background/Panel/ui_item_fruit_"+o).getBoundingBoxToWorld().intersects(cc.find("Canvas/Background/Fr1_1").getBoundingBoxToWorld())){this.PlaySound("effect_propsputright"),cc.find("Canvas/Background/Panel").zIndex=1,this.hideAllFruit(),this.SelectedFruit=o;for(var i=1;i&lt;=3;i++)cc.find("Canvas/Background/Fr"+this.SelectedFruit+"_"+i).active=!0,cc.find("Canvas/Background/Fr"+this.SelectedFruit+"_"+i).zIndex=2*i;this.CuttingStep=0,this.setValues(),cc.find("Canvas/Background/ui_item_dao_1").stopAllActions(),cc.find("Canvas/Background/ui_item_dao_1").scale=1,cc.find("Canvas/Background/ui_item_dao_1").runAction(cc.repeatForever(cc.sequence(cc.scaleTo(.5,1.1),cc.scaleTo(.5,1)))),cc.find("Canvas/Background/Panel/ui_item_fruit_"+o).stopAllActions(),cc.find("Canvas/Background/Panel/ui_item_fruit_"+o).zIndex=1,cc.find("Canvas/Background/Panel/ui_item_fruit_"+o).setPosition(n)}else cc.find("Canvas/Background/Panel/ui_item_fruit_"+o).stopAllActions(),cc.find("Canvas/Background/Panel/ui_item_fruit_"+o).runAction(cc.sequence(cc.moveTo(.3,n),cc.callFunc(function(){cc.find("Canvas/Background/Panel/ui_item_fruit_"+o).zIndex=1,cc.find("Canvas/Background/Panel").zIndex=1})))}else 2==this.canMoveStep&amp;&amp;(cc.find("Canvas/Background/ani_item_dao_1").getBoundingBoxToWorld().intersects(cc.find("Canvas/Background/ani_tishi_03").getBoundingBoxToWorld())?(cc.find("Canvas/Background/ani_tishi_03").active=!1,cc.find("Canvas/Background/ani_item_dao_1").stopAllActions(),cc.find("Canvas/Background/ui_item_dao_1").scale=1,0==this.CuttingStep?cc.find("Canvas/Background/ani_item_dao_1").zIndex=3:1==this.CuttingStep&amp;&amp;(cc.find("Canvas/Background/ani_item_dao_1").zIndex=5),cc.find("Canvas/Background/ani_item_dao_1").setPosition(this.KniefPOS[this.CuttingStep]),cc.find("Canvas/Background/ani_item_dao_1").runAction(cc.sequence(cc.rotateTo(.1,30),cc.callFunc(function(){e.PlaySound("effect_cutfruit")}),cc.rotateTo(1,-110),cc.rotateTo(.1,0),cc.moveTo(.2,this.PickPOS),cc.callFunc(function(){cc.find("Canvas/Background/ani_item_dao_1").active=!1,cc.find("Canvas/Background/ui_item_dao_1").active=!0,cc.find("Canvas/Background/ani_item_dao_1").zIndex=1,e.CuttingStep++,2==e.CuttingStep&amp;&amp;(s.GlobalData.data.flags.selectedFruit=e.SelectedFruit,e.SelectedFruit=-1,cc.find("Canvas/Background/Panel").active=!1,cc.find("Canvas/Background/zhuangshi_btn_right_1").active=!1,cc.find("Canvas/Background/zhuangshi_btn_left_1").active=!1,cc.find("Canvas/next").active=!0,cc.find("Canvas/Background/ui_item_dao_1").active=!1,cc.find("Canvas/next").scale=0,cc.find("Canvas/next").runAction(cc.scaleTo(.5,1).easing(cc.easeBackOut())))}))),cc.find("Canvas/Background/Fr"+this.SelectedFruit+"_"+(this.CuttingStep+1)).runAction(cc.sequence(cc.delayTime(1.1),cc.spawn(cc.rotateTo(.2,20),cc.moveBy(.2,cc.v2(50-10*this.CuttingStep,0)))))):(cc.find("Canvas/Background/ani_tishi_03").active=!1,cc.find("Canvas/Background/ani_item_dao_1").stopAllActions(),cc.find("Canvas/Background/ani_item_dao_1").runAction(cc.sequence(cc.moveTo(.2,this.PickPOS),cc.callFunc(function(){cc.find("Canvas/Background/ani_item_dao_1").active=!1,cc.find("Canvas/Background/ui_item_dao_1").active=!0,cc.find("Canvas/Background/ani_item_dao_1").zIndex=1})))));this.canMoveStep=-1},e.prototype.nextAction=function(){return c(this,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return this.PlaySound("effect_button"),l.default.getInstance().requestAds(),[4,u.Delay(.3)];case 1:return t.sent(),cc.director.loadScene("View4"),[2]}})})},e.prototype.PlaySound=function(t){cc.find("Canvas/SoundNode/"+t)&amp;&amp;cc.find("Canvas/SoundNode/"+t).getComponent(cc.AudioSource).play()},a([p],e)}(cc.Component));n.default=h,cc._RF.pop()},{"../../../Common/Script/Helper/GlobalData":"GlobalData","../../../Common/Script/Helper/HelperTools":"HelperTools","../../../Common/Script/Promotion/AdManager":"AdManager"}],View4:[function(t,e,n){"use strict";cc._RF.push(e,"58588EfSJ9HwZuAETrHIxFP","View4");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c};Object.defineProperty(n,"__esModule",{value:!0});var c=t("../../../Common/Script/Helper/GlobalData"),r=t("../../../Common/Script/Promotion/AdManager"),s=cc._decorator,u=s.ccclass,l=(s.property,function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.SelectedFruit=1,e.SelectedItem=-1,e.PickPOS=null,e}return i(e,t),e.prototype.onLoad=function(){var t,e=this;this.SelectedFruit=c.GlobalData.data.flags.selectedFruit,cc.find("Canvas/Background/FruitPieces/"+c.GlobalData.data.flags.selectedFruit).active=!0;for(var n=1;n&lt;=5;n++)cc.find("Canvas/Background/FruitPieces/"+this.SelectedFruit+"/"+n).opacity=0,cc.find("Canvas/Background/FruitPieces/"+this.SelectedFruit+"/"+n).setPosition(cc.v2(cc.find("Canvas/Background/FruitPieces/"+this.SelectedFruit+"/"+n).getPosition().x,cc.find("Canvas/Background/FruitPieces/"+this.SelectedFruit+"/"+n).getPosition().y+300)),cc.find("Canvas/Background/FruitPieces/"+this.SelectedFruit+"/"+n).runAction(cc.sequence(cc.delayTime(.2*n),cc.fadeIn(.2),cc.moveBy(.5,cc.v2(0,-300)),cc.callFunc(function(){e.PlaySound("effect_fruitfallin")})));1==this.SelectedFruit?t="lanmei":2==this.SelectedFruit?t="putao":3==this.SelectedFruit?t="xigua":4==this.SelectedFruit?t="li":5==this.SelectedFruit?t="xiangjiao":6==this.SelectedFruit?t="mangguo":7==this.SelectedFruit?t="yingtao":8==this.SelectedFruit?t="caomei":9==this.SelectedFruit&amp;&amp;(t="lizhi"),cc.find("Canvas/Background/jiaoban").getComponent(sp.Skeleton).setAnimation(0,t,!1),cc.find("Canvas/Background/jiaoban").getComponent(sp.Skeleton).paused=!0,cc.find("Canvas/Background/jiaoban").active=!1},e.prototype.start=function(){cc.find("Canvas/welldone").zIndex=20,cc.find("Canvas").on(cc.Node.EventType.TOUCH_START,this.tapStart,this),cc.find("Canvas").on(cc.Node.EventType.TOUCH_MOVE,this.tapMove,this),cc.find("Canvas").on(cc.Node.EventType.TOUCH_END,this.tapEnd,this),cc.find("Canvas").on(cc.Node.EventType.TOUCH_CANCEL,this.tapEnd,this)},e.prototype.tapStart=function(t){var e=t.getLocation();if(cc.find("Canvas/Background/jiaobanqi_01").getBoundingBoxToWorld().contains(e)&amp;&amp;!cc.find("Canvas/welldone").active)this.SelectedItem=1,this.PlaySound("effect_button"),cc.find("Canvas/Background/jiaobanqi_01").getComponent(sp.Skeleton).setAnimation(1,"naqi",!0),this.PickPOS=cc.find("Canvas/Background/jiaobanqi_01").getPosition(),cc.find("Canvas/Background/jiaobanqi_01").zIndex=10,cc.find("Canvas/Background/jiaobanqi_01").setPosition(cc.find("Canvas/Background/jiaobanqi_01").getParent().convertToNodeSpaceAR(e));else if(cc.find("Canvas/Background/jiaobanqi_02").getBoundingBoxToWorld().contains(e)&amp;&amp;!cc.find("Canvas/welldone").active){if(cc.find("Canvas/Background/jiaobanqi_02").getChildByName("Ads"))return void r.default.getInstance().requestRewardAds(cc.find("Canvas/Background/jiaobanqi_02").getChildByName("Ads"));this.SelectedItem=2,this.PlaySound("effect_button"),this.PickPOS=cc.find("Canvas/Background/jiaobanqi_02").getPosition(),cc.find("Canvas/Background/jiaobanqi_02").active=!1,cc.find("Canvas/Background/jiaobanqi_022").active=!0,cc.find("Canvas/Background/jiaobanqi_022").zIndex=10,cc.find("Canvas/Background/jiaobanqi_022").setPosition(cc.find("Canvas/Background/jiaobanqi_022").getParent().convertToNodeSpaceAR(e))}},e.prototype.tapMove=function(t){var e=t.getLocation();1==this.SelectedItem?(e.y&gt;345?cc.find("Canvas/Background/jiaobanqi_01").setPosition(cc.find("Canvas/Background/jiaobanqi_01").getParent().convertToNodeSpaceAR(e)):cc.find("Canvas/Background/jiaobanqi_01").setPosition(cc.find("Canvas/Background/jiaobanqi_01").getParent().convertToNodeSpaceAR(cc.v2(e.x,345))),cc.find("Canvas/Background/jiaobanqi_01").getBoundingBoxToWorld().intersects(cc.find("Canvas/Background/jiaoban").getBoundingBoxToWorld())?(cc.find("Canvas/Background/jiaoban").active||(cc.find("Canvas/Background/FruitPieces/"+this.SelectedFruit).active=!1,cc.find("Canvas/Background/jiaoban").active=!0,cc.find("Canvas/Background/effect_shui").active=!1,cc.find("Canvas/Background/niunai").active=!1,cc.find("Canvas/Background/jidan").active=!1,cc.find("Canvas/Background/mianfen").active=!1),cc.find("Canvas/Background/jiaoban").getComponent(sp.Skeleton).paused=!1,0==cc.find("Canvas/SoundNode/effect_handbeatermix").getComponent(cc.AudioSource).isPlaying&amp;&amp;this.PlaySound("effect_handbeatermix"),cc.find("Canvas/Background/jiaoban").getComponent(sp.Skeleton).getState()&amp;&amp;cc.find("Canvas/Background/jiaoban").getComponent(sp.Skeleton).getState().getCurrent(0).isComplete()&amp;&amp;(this.PlaySound("item_welldone"),this.StopSound("effect_handbeatermix"),this.SelectedItem=10,cc.find("Canvas/welldone").active=!0,cc.find("Canvas/welldone").getComponent(sp.Skeleton).setAnimation(1,"animation",!0),cc.find("Canvas/next").active=!0,cc.find("Canvas/Background/jiaobanqi_01").stopAllActions(),cc.find("Canvas/Background/jiaobanqi_01").runAction(cc.sequence(cc.moveTo(.2,this.PickPOS),cc.callFunc(function(){cc.find("Canvas/Background/jiaobanqi_01").zIndex=1,cc.find("Canvas/Background/jiaobanqi_01").getComponent(sp.Skeleton).setAnimation(0,"stand",!0)}))))):(this.StopSound("effect_handbeatermix"),cc.find("Canvas/Background/jiaoban").getComponent(sp.Skeleton).paused=!0)):2==this.SelectedItem&amp;&amp;(e.y&gt;396?cc.find("Canvas/Background/jiaobanqi_022").setPosition(cc.find("Canvas/Background/jiaobanqi_022").getParent().convertToNodeSpaceAR(e)):cc.find("Canvas/Background/jiaobanqi_022").setPosition(cc.find("Canvas/Background/jiaobanqi_022").getParent().convertToNodeSpaceAR(cc.v2(e.x,396))),0==cc.find("Canvas/SoundNode/effect_automaticmixerworking").getComponent(cc.AudioSource).isPlaying&amp;&amp;this.PlaySound("effect_automaticmixerworking"),cc.find("Canvas/Background/jiaobanqi_022/intersect").getBoundingBoxToWorld().intersects(cc.find("Canvas/Background/jiaoban").getBoundingBoxToWorld())?(cc.find("Canvas/Background/jiaoban").active||(cc.find("Canvas/Background/FruitPieces/"+this.SelectedFruit).active=!1,cc.find("Canvas/Background/jiaoban").active=!0,cc.find("Canvas/Background/effect_shui").active=!1,cc.find("Canvas/Background/niunai").active=!1,cc.find("Canvas/Background/jidan").active=!1,cc.find("Canvas/Background/mianfen").active=!1),cc.find("Canvas/Background/jiaoban").getComponent(sp.Skeleton).paused=!1,cc.find("Canvas/Background/jiaoban").getComponent(sp.Skeleton).getState()&amp;&amp;cc.find("Canvas/Background/jiaoban").getComponent(sp.Skeleton).getState().getCurrent(0).isComplete()&amp;&amp;(this.PlaySound("item_welldone"),this.SelectedItem=10,this.StopSound("effect_automaticmixerworking"),cc.find("Canvas/welldone").active=!0,cc.find("Canvas/welldone").getComponent(sp.Skeleton).setAnimation(1,"animation",!0),cc.find("Canvas/next").active=!0,cc.find("Canvas/Background/jiaobanqi_022").stopAllActions(),cc.find("Canvas/Background/jiaobanqi_022").runAction(cc.sequence(cc.moveTo(.2,this.PickPOS),cc.callFunc(function(){cc.find("Canvas/Background/jiaobanqi_022").zIndex=1,cc.find("Canvas/Background/jiaobanqi_022").active=!1,cc.find("Canvas/Background/jiaobanqi_022").setPosition(cc.v2(1e3,1e3)),cc.find("Canvas/Background/jiaobanqi_02").active=!0}))))):cc.find("Canvas/Background/jiaoban").getComponent(sp.Skeleton).paused=!0)},e.prototype.tapEnd=function(t){t.getLocation(),1==this.SelectedItem?(this.StopSound("effect_handbeatermix"),cc.find("Canvas/Background/jiaobanqi_01").stopAllActions(),cc.find("Canvas/Background/jiaobanqi_01").runAction(cc.sequence(cc.moveTo(.2,this.PickPOS),cc.callFunc(function(){cc.find("Canvas/Background/jiaobanqi_01").zIndex=1,cc.find("Canvas/Background/jiaobanqi_01").getComponent(sp.Skeleton).setAnimation(0,"stand",!0)}))),cc.find("Canvas/Background/jiaoban").getComponent(sp.Skeleton).getState()&amp;&amp;cc.find("Canvas/Background/jiaoban").getComponent(sp.Skeleton).getState().getCurrent(0).isComplete()&amp;&amp;!cc.find("Canvas/welldone").active&amp;&amp;(this.PlaySound("item_welldone"),cc.find("Canvas/welldone").active=!0,cc.find("Canvas/welldone").getComponent(sp.Skeleton).setAnimation(1,"animation",!0),cc.find("Canvas/next").active=!0),cc.find("Canvas/Background/jiaoban").getComponent(sp.Skeleton).paused=!0):2==this.SelectedItem&amp;&amp;(this.StopSound("effect_automaticmixerworking"),cc.find("Canvas/Background/jiaobanqi_022").stopAllActions(),cc.find("Canvas/Background/jiaobanqi_022").runAction(cc.sequence(cc.moveTo(.2,this.PickPOS),cc.callFunc(function(){cc.find("Canvas/Background/jiaobanqi_022").zIndex=1,cc.find("Canvas/Background/jiaobanqi_022").active=!1,cc.find("Canvas/Background/jiaobanqi_022").setPosition(cc.v2(1e3,1e3)),cc.find("Canvas/Background/jiaobanqi_02").active=!0}))),cc.find("Canvas/Background/jiaoban").getComponent(sp.Skeleton).getState()&amp;&amp;cc.find("Canvas/Background/jiaoban").getComponent(sp.Skeleton).getState().getCurrent(0).isComplete()&amp;&amp;!cc.find("Canvas/welldone").active&amp;&amp;(cc.find("Canvas/welldone").active=!0,cc.find("Canvas/welldone").getComponent(sp.Skeleton).setAnimation(1,"animation",!0),cc.find("Canvas/next").active=!0),cc.find("Canvas/Background/jiaoban").getComponent(sp.Skeleton).paused=!0),this.SelectedItem=-1},e.prototype.nextAction=function(){this.PlaySound("effect_button"),this.node.runAction(cc.sequence(cc.delayTime(.3),cc.callFunc(function(){cc.director.loadScene("View5")})))},e.prototype.StopSound=function(t){var e=cc.find("Canvas/SoundNode/"+t);e.stopAllActions(),e.getComponent(cc.AudioSource).stop()},e.prototype.PlaySound=function(t,e){void 0===e&amp;&amp;(e=0);var n=cc.find("Canvas/SoundNode/"+t);n&amp;&amp;(0==e?(n.stopAllActions(),n.getComponent(cc.AudioSource).play()):(n.stopAllActions(),n.runAction(cc.sequence(cc.delayTime(e),cc.callFunc(function(){n.getComponent(cc.AudioSource).play()})))))},a([u],e)}(cc.Component));n.default=l,cc._RF.pop()},{"../../../Common/Script/Helper/GlobalData":"GlobalData","../../../Common/Script/Promotion/AdManager":"AdManager"}],View5:[function(t,e,n){"use strict";cc._RF.push(e,"26401fTAQBMGpnzs9f/xWNC","View5");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c},c=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{s(o.next(t))}catch(e){a(e)}}function r(t){try{s(o.throw(t))}catch(e){a(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,r)}s((o=o.apply(t,e||[])).next())})},r=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function r(t){return function(e){return s([t,e])}}function s(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(r){a=[6,r],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0});var s=t("../../../Common/Script/Helper/AudioManager"),u=t("../../../Common/Script/Helper/CocosHelper"),l=t("../../../Common/Script/Helper/GlobalData"),d=t("../../../Common/Script/Helper/HelperTools"),p=t("../../../Common/Script/Promotion/AdManager"),h=cc._decorator,f=h.ccclass,v=h.property,g=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.hand=null,e.machine=null,e.handle=null,e.isMachineOn=!1,e}return i(e,t),e.prototype.start=function(){this.machine=cc.find("Canvas/Machine/bingqilin").getComponent(sp.Skeleton),this.handle=cc.find("Canvas/Machine/lengqi").getComponent(sp.Skeleton),u.HideSlotSpine(cc.find("Canvas/Machine/bingqilin").getComponent(sp.Skeleton),"bingqilintong_diejia3"),this.showPourParticle()},e.prototype.openConePopp=function(){s.default.getInstance().play("effect_button"),this.hideHand(),cc.find("Canvas/ConePopup/IceCreamcone").active=!0},e.prototype.closeConePopup=function(){s.default.getInstance().play("effect_button"),this.showHand(cc.v2(-50,130)),cc.find("Canvas/ConePopup/IceCreamcone").active=!1,cc.find("Canvas/Machine/FlavourBtn").getComponent(cc.Button).interactable=!0},e.prototype.openFlavourPopp=function(){s.default.getInstance().play("effect_button"),this.hideHand(),cc.find("Canvas/CreamPopup/Cream").active=!0},e.prototype.closeFlavourPopup=function(){s.default.getInstance().play("effect_button"),this.showHand(cc.v2(40,150)),cc.find("Canvas/CreamPopup/Cream").active=!1},e.prototype.onCreamSelected=function(t){return c(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return t.target.getChildByName("Ads")?[4,p.default.getInstance().requestRewardAds(t.target.getChildByName("Ads"))]:[3,2];case 1:if(!e.sent())return[2];e.label=2;case 2:return s.default.getInstance().play("effect_propsputright"),cc.find("Canvas/CreamPopup/Cream/list_bg/list_btn_close_01").active=!0,cc.find("Canvas/CreamPopup/Cream/Selectcream").children.forEach(function(t){t.children[0].active=!1}),t.target.children[0].active=!0,cc.find("Canvas/Machine/Cream").children.forEach(function(t){t.active=!1}),cc.find("Canvas/Machine/Cream/"+t.target.name).active=!0,cc.find("Canvas/Machine/bingqilinji_02/button").getComponent(cc.Button).interactable=!0,l.GlobalData.data.flags.selectedIcecream=Number(t.target.name),[2]}})})},e.prototype.onConeSelected=function(t){return c(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return t.target.getChildByName("Ads")?[4,p.default.getInstance().requestRewardAds(t.target.getChildByName("Ads"))]:[3,2];case 1:if(!e.sent())return[2];e.label=2;case 2:return s.default.getInstance().play("effect_propsputright"),cc.find("Canvas/ConePopup/IceCreamcone/list_bg/list_btn_close_01").active=!0,cc.find("Canvas/ConePopup/IceCreamcone/Cone").children.forEach(function(t){t.children[0].active=!1}),t.target.children[0].active=!0,cc.find("Canvas/Machine/IcecreamCone").children.forEach(function(t){t.active=!1}),cc.find("Canvas/Machine/IcecreamCone/"+t.target.name).active=!0,l.GlobalData.data.flags.selectedCone=Number(t.target.name),[2]}})})},e.prototype.hideHand=function(){this.hand.active=!1},e.prototype.OnOffBtnClicked=function(t){var e=this,n=(Math.abs(cc.find("Canvas/ui_make_jindutiao_1/ui_item_biaoqing_3").x),cc.find("Canvas/ui_make_jindutiao_1/ui_make_jindutiao_2").getComponent(cc.Sprite).fillRange);n=Math.abs(n),s.default.getInstance().stop("effect_machineworking"),s.default.getInstance().play("effect_machinebutton"),this.isMachineOn?(this.isMachineOn=!1,this.machine.setAnimation(0,"on01",!1),cc.find("Canvas").getComponent(cc.Animation).stop("CoolingProgress"),console.log(n),n&gt;.3&amp;&amp;n&lt;.7?(this.showHand(cc.v2(-84,-170)),cc.find("Canvas/Machine/ConeBtn").getComponent(cc.Button).interactable=!0,t.target.getComponent(cc.Button).interactable=!1):(cc.find("Canvas").getComponent(cc.Animation).play("resetProgress"),this.handle.clearTracks(),this.handle.setToSetupPose())):(this.hideHand(),this.isMachineOn=!0,cc.tween(this.machine).delay(2).call(function(){e.showHand(cc.v2(120,115))}).start(),this.machine.setAnimation(0,"off01",!1),this.handle.setAnimation(0,"animation",!0),s.default.getInstance().play("effect_machineworking"),cc.find("Canvas").getComponent(cc.Animation).play("CoolingProgress"),cc.find("Canvas").getComponent(cc.Animation).once(cc.Animation.EventType.FINISHED,function(){s.default.getInstance().stop("effect_machineworking"),e.isMachineOn=!1,e.machine.setAnimation(0,"on01",!1),cc.find("Canvas").getComponent(cc.Animation).play("resetProgress"),e.handle.clearTracks(),e.handle.setToSetupPose()},this))},e.prototype.showPourParticle=function(){var t=this;s.default.getInstance().play("effect_pouringwater");var e=cc.find("Canvas/wan/ATTACHED_NODE_TREE/ATTACHED_NODE:root/ATTACHED_NODE:bone/ATTACHED_NODE:effect/effect_bingqilinfen");cc.tween(e).delay(.5).set({active:!0}).start(),cc.tween(cc.find("Canvas/wan")).delay(u.getSpineAnimationDuration(cc.find("Canvas/wan").getComponent(sp.Skeleton),"animation")).by(.5,{x:-500}).call(function(){var e=cc.find("Canvas").getComponent(cc.Animation).play("Zoom").duration;cc.tween(t.hand).delay(e).call(function(){t.showHand(cc.v2(120,115))}).start(),cc.find("Canvas/Machine/bingqilin/OnBtn").getComponent(cc.Button).interactable=!0}).start()},e.prototype.showHand=function(t){this.hand.active=!0,this.hand.setPosition(t),this.hand.getComponent(cc.Animation).play()},e.prototype.machineHandleClicked=function(){this.hideHand(),s.default.getInstance().play("item_jacksdown"),s.default.getInstance().play("effect_makeicescream"),cc.find("Canvas/Machine/bingqilinji_02").getComponent(sp.Skeleton).setAnimation(0,"002",!1),cc.find("Canvas/Machine/bingqilinji_02/button").getComponent(cc.Button).interactable=!1;var t=cc.find("Canvas").getComponent(cc.Animation).play("IceCreamConeFill").duration;cc.tween(this.node).delay(t).call(function(){s.default.getInstance().play("effect_jacksup"),s.default.getInstance().stop("effect_makeicescream"),cc.find("Canvas/next").active=!0,cc.find("Canvas/welldone").active=!0,cc.find("Canvas/welldone").getComponent(sp.Skeleton).setAnimation(1,"animation",!0),cc.find("Canvas/Machine/bingqilinji_02").getComponent(sp.Skeleton).setAnimation(0,"001",!1),s.default.getInstance().play("item_welldone")}).start()},e.prototype.onNextClick=function(t){return c(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return t.target.getComponent(cc.Button).interactable=!1,p.default.getInstance().requestAds(),[4,d.Delay(.3)];case 1:return e.sent(),cc.director.loadScene("View6"),[2]}})})},a([v(cc.Node)],e.prototype,"hand",void 0),a([f],e)}(cc.Component);n.default=g,cc._RF.pop()},{"../../../Common/Script/Helper/AudioManager":"AudioManager","../../../Common/Script/Helper/CocosHelper":"CocosHelper","../../../Common/Script/Helper/GlobalData":"GlobalData","../../../Common/Script/Helper/HelperTools":"HelperTools","../../../Common/Script/Promotion/AdManager":"AdManager"}],View6:[function(t,e,n){"use strict";cc._RF.push(e,"c4be6PuQpVDM4vWxRbbVUNL","View6");var o,i=this&amp;&amp;this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&amp;&amp;this.__decorate||function(t,e,n,o){var i,a=arguments.length,c=a&lt;3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var r=t.length-1;r&gt;=0;r--)(i=t[r])&amp;&amp;(c=(a&lt;3?i(c):a&gt;3?i(e,n,c):i(e,n))||c);return a&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(e,n,c),c},c=this&amp;&amp;this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(i,a){function c(t){try{s(o.next(t))}catch(e){a(e)}}function r(t){try{s(o.throw(t))}catch(e){a(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(c,r)}s((o=o.apply(t,e||[])).next())})},r=this&amp;&amp;this.__generator||function(t,e){var n,o,i,a,c={label:0,sent:function(){if(1&amp;i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&amp;&amp;(a[Symbol.iterator]=function(){return this}),a;function r(t){return function(e){return s([t,e])}}function s(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&amp;&amp;(i=2&amp;a[0]?o.return:a[0]?o.throw||((i=o.return)&amp;&amp;i.call(o),0):o.next)&amp;&amp;!(i=i.call(o,a[1])).done)return i;switch(o=0,i&amp;&amp;(a=[2&amp;a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length&gt;0&amp;&amp;i[i.length-1])&amp;&amp;(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&amp;&amp;(!i||a[1]&gt;i[0]&amp;&amp;a[1]&lt;i[3])){c.label=a[1];break}if(6===a[0]&amp;&amp;c.label&lt;i[1]){c.label=i[1],i=a;break}if(i&amp;&amp;c.label&lt;i[2]){c.label=i[2],c.ops.push(a);break}i[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(r){a=[6,r],o=0}finally{n=i=0}if(5&amp;a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(n,"__esModule",{value:!0});var s=t("../../../Common/Script/Helper/AudioManager"),u=t("../../../Common/Script/Helper/GlobalData"),l=t("../../../Common/Script/Promotion/AdManager"),d=cc._decorator,p=d.ccclass,h=d.property,f=function(t){function e(){var e=null!==t&amp;&amp;t.apply(this,arguments)||this;return e.decoration=null,e.decore_hint=null,e.scriptName="View6",e.selectedPanel="-1",e.canMove=!1,e.isHintActive=!1,e.activeDecore=null,e.rotation=0,e.PreDistance=0,e.panelUsed=[!1,!1,!1,!1,!1,!1],e}return i(e,t),e.prototype.start=function(){cc.director.getCollisionManager().enabled=!0,this.registerButtonClickEvents(),cc.find("Canvas/AllPanels").children.forEach(function(t){t.getComponent(cc.ScrollView).enabled=!1}),cc.find("Canvas/IcecreamCone/Cone/"+u.GlobalData.data.flags.selectedCone).active=!0,cc.find("Canvas/IcecreamCone/Cream/"+u.GlobalData.data.flags.selectedIcecream).active=!0,this.node.on(cc.Node.EventType.TOUCH_START,this.TouchStart,this),this.node.on(cc.Node.EventType.TOUCH_MOVE,this.TouchMove,this),this.node.on(cc.Node.EventType.TOUCH_END,this.TouchEnd,this),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this.TouchEnd,this)},e.prototype.registerButtonClickEvents=function(){var t=this;cc.find("Canvas/decorativebtn").children.forEach(function(e){t.addButtonEvent(e.getComponent(cc.Button),"showPanel")}),cc.find("Canvas/AllPanels/Fruitview/view/content").children.forEach(function(e){t.addButtonEvent(e.addComponent(cc.Button),"panelItemClicked","1"),e.getComponent(cc.Button).transition=cc.Button.Transition.SCALE}),cc.find("Canvas/AllPanels/Creamlineview/view/content").children.forEach(function(e){t.addButtonEvent(e.addComponent(cc.Button),"panelItemClicked","2"),e.getComponent(cc.Button).transition=cc.Button.Transition.SCALE}),cc.find("Canvas/AllPanels/LOlipopview/view/content").children.forEach(function(e){t.addButtonEvent(e.addComponent(cc.Button),"panelItemClicked","3"),e.getComponent(cc.Button).transition=cc.Button.Transition.SCALE}),cc.find("Canvas/AllPanels/Chocolateview/view/content").children.forEach(function(e){t.addButtonEvent(e.addComponent(cc.Button),"panelItemClicked","4"),e.getComponent(cc.Button).transition=cc.Button.Transition.SCALE}),cc.find("Canvas/AllPanels/Smileview/view/content").children.forEach(function(e){t.addButtonEvent(e.addComponent(cc.Button),"panelItemClicked","5"),e.getComponent(cc.Button).transition=cc.Button.Transition.SCALE}),cc.find("Canvas/AllPanels/Bgview/view/content").children.forEach(function(e){t.addButtonEvent(e.addComponent(cc.Button),"panelItemClicked","6"),e.getComponent(cc.Button).transition=cc.Button.Transition.SCALE})},e.prototype.angle=function(t,e,n,o){var i=o-e,a=n-t,c=Math.atan2(i,a);return(c*=180/Math.PI)&lt;0&amp;&amp;(c=360+c),c},e.prototype.TouchStart=function(t){for(var e=this.decoration.childrenCount-1;e&gt;=0;e--){var n=this.decoration.children[e];if(n.getBoundingBoxToWorld().contains(t.getLocation())){this.activeDecore=n,this.canMove=!0,this.decore_hint.active=!0,this.decore_hint.setPosition(n.getPosition());var o=this.activeDecore.parent.convertToWorldSpaceAR(this.activeDecore.position),i=t.getLocation();this.rotation=this.activeDecore.parent.angle-this.angle(o.x,o.y,i.x,i.y);break}}this.canMove||1==this.decore_hint.active&amp;&amp;this.decore_hint.getBoundingBoxToWorld().contains(t.getLocation())&amp;&amp;(this.isHintActive=!0),this.canMove||this.isHintActive||(this.activeDecore=null,this.decore_hint.active=!1)},e.prototype.TouchMove=function(t){if(this.canMove&amp;&amp;(this.activeDecore.setPosition(this.activeDecore.parent.convertToNodeSpaceAR(t.getLocation())),this.decore_hint.setPosition(this.activeDecore.parent.convertToNodeSpaceAR(t.getLocation()))),this.isHintActive){t.getPreviousLocation();var e=this.activeDecore.parent.convertToWorldSpaceAR(this.activeDecore.position),n=t.getLocation();this.activeDecore.angle=this.angle(e.x,e.y,n.x,n.y);var o=this.getDistance(e.x,e.y,n.x,n.y);this.PreDistance&lt;o?(this.activeDecore.scale+=.01,this.activeDecore.scale&gt;=1.5&amp;&amp;(this.activeDecore.scale=1.5)):(this.activeDecore.scale-=.01,this.activeDecore.scale&lt;=.5&amp;&amp;(this.activeDecore.scale=.5)),this.PreDistance=o}},e.prototype.TouchEnd=function(t){this.canMove&amp;&amp;(cc.Intersection.pointInPolygon(t.getLocation(),cc.find("Canvas/polygonCollider").getComponent(cc.PolygonCollider).world.points)?console.log("Hit!"):(this.decoration.removeChild(this.activeDecore,!0),this.decore_hint.active=!1,console.log("No hit"))),this.canMove=!1,this.isHintActive=!1},e.prototype.onResetButtonClicked=function(){this.canMove=!1,this.isHintActive=!1,this.decoration.removeAllChildren(!0),this.decore_hint.active=!1,this.activeDecore=null,cc.find("Canvas/IcecreamCone/ExtraCream").children.forEach(function(t){t.active=!1})},e.prototype.addButtonEvent=function(t,e,n){void 0===n&amp;&amp;(n="");var o=new cc.Component.EventHandler;o.target=this.node,o.component=this.scriptName,o.handler=e,o.customEventData=n,t.clickEvents.push(o)},e.prototype.getDistance=function(t,e,n,o){var i=n-t,a=o-e;return Math.sqrt(a*a+i*i)},e.prototype.showPanel=function(t){switch(s.default.getInstance().play("effect_button"),this.selectedPanel=t.target.name,cc.find("Canvas/leftbtn").active=!0,cc.find("Canvas/rightbtn").active=!0,cc.find("Canvas/AllPanels/Fruitview").active=!1,cc.find("Canvas/AllPanels/Creamlineview").active=!1,cc.find("Canvas/AllPanels/LOlipopview").active=!1,cc.find("Canvas/AllPanels/Chocolateview").active=!1,cc.find("Canvas/AllPanels/Smileview").active=!1,cc.find("Canvas/AllPanels/Bgview").active=!1,this.activeDecore=null,this.decore_hint.active=!1,t.target.name){case"1":cc.find("Canvas/AllPanels/Fruitview").active=!0;break;case"2":cc.find("Canvas/AllPanels/Creamlineview").active=!0;break;case"3":cc.find("Canvas/AllPanels/LOlipopview").active=!0;break;case"4":cc.find("Canvas/AllPanels/Chocolateview").active=!0;break;case"5":cc.find("Canvas/AllPanels/Smileview").active=!0;break;case"6":cc.find("Canvas/AllPanels/Bgview").active=!0}},e.prototype.scrollPanel=function(t){var e=null;switch(this.activeDecore=null,this.decore_hint.active=!1,s.default.getInstance().play("effect_button"),this.selectedPanel){case"1":e=cc.find("Canvas/AllPanels/Fruitview");break;case"2":e=cc.find("Canvas/AllPanels/Creamlineview");break;case"3":e=cc.find("Canvas/AllPanels/LOlipopview");break;case"4":e=cc.find("Canvas/AllPanels/Chocolateview");break;case"5":e=cc.find("Canvas/AllPanels/Smileview");break;case"6":e=cc.find("Canvas/AllPanels/Bgview")}null!=e&amp;&amp;(e.getComponent(cc.ScrollView).enabled=!0,"leftbtn"==t.target.name?e.getComponent(cc.ScrollView).scrollToLeft(.1):"rightbtn"==t.target.name&amp;&amp;e.getComponent(cc.ScrollView).scrollToRight(.1),cc.tween(e).delay(.1).call(function(){e.getComponent(cc.ScrollView).enabled=!1}).start())},e.prototype.panelItemClicked=function(t,e){return c(this,void 0,void 0,function(){var n;return r(this,function(o){switch(o.label){case 0:return s.default.getInstance().play("effect_button"),this.activeDecore=null,this.decore_hint.active=!1,t.target.getChildByName("Ads")?[4,l.default.getInstance().requestRewardAds(t.target.getChildByName("Ads"))]:[3,2];case 1:if(!o.sent())return[2];o.label=2;case 2:switch(e){case"1":this.panelUsed[0]=!0,this.addDecorationItem(t.target);break;case"2":this.panelUsed[1]=!0,cc.find("Canvas/IcecreamCone/ExtraCream").children.forEach(function(t){t.active=!1}),cc.find("Canvas/IcecreamCone/ExtraCream").getChildByName(t.target.name).active=!0;break;case"3":this.panelUsed[2]=!0,this.addDecorationItem(t.target);break;case"4":this.panelUsed[3]=!0,this.addDecorationItem(t.target);break;case"5":this.panelUsed[4]=!0,this.addDecorationItem(t.target);break;case"6":this.panelUsed[5]=!0,cc.find("Canvas/Bg").children.forEach(function(t){t.active=!1}),cc.find("Canvas/Bg").getChildByName(t.target.name).active=!0}for(n=0;n&lt;this.panelUsed.length;n++)if(!this.panelUsed[n])return[2];return cc.find("Canvas/Next").active=!0,[2]}})})},e.prototype.addDecorationItem=function(t){var e=cc.instantiate(t);e.setPosition(cc.Vec2.ZERO),e.scale=.75,e.removeComponent(cc.Button),this.decoration.addChild(e),this.decore_hint.active=!0,this.decore_hint.getComponent(cc.Animation).play(),this.decore_hint.setPosition(cc.Vec2.ZERO),this.activeDecore=e},e.prototype.onNextButtonClicked=function(){s.default.getInstance().play("effect_button"),cc.find("Canvas/AllPanels").active=!1,cc.find("Canvas/decorativebtn").active=!1,cc.find("Canvas/IcecreamCone").active=!1,cc.find("Canvas/leftbtn").active=!1,cc.find("Canvas/rightbtn").active=!1,cc.find("Canvas/menubtn").active=!1,cc.find("Canvas/Eating").active=!0,cc.find("Canvas/Next").active=!1,this.node.off(cc.Node.EventType.TOUCH_START,this.TouchStart,this),this.node.off(cc.Node.EventType.TOUCH_MOVE,this.TouchMove,this),this.node.off(cc.Node.EventType.TOUCH_END,this.TouchEnd,this),this.node.off(cc.Node.EventType.TOUCH_CANCEL,this.TouchEnd,this),this.decore_hint.active=!1;var t=cc.instantiate(cc.find("Canvas/IcecreamCone"));t.active=!0,t.scale=1,t.setPosition(0,0),cc.find("Canvas/Eating/ConeMask").addChild(t)},a([h(cc.Node)],e.prototype,"decoration",void 0),a([h(cc.Node)],e.prototype,"decore_hint",void 0),a([p],e)}(cc.Component);n.default=f,cc._RF.pop()},{"../../../Common/Script/Helper/AudioManager":"AudioManager","../../../Common/Script/Helper/GlobalData":"GlobalData","../../../Common/Script/Promotion/AdManager":"AdManager"}]},{},["AngleManager","AudioManager","CanvasManager","CocosHelper","DragonHelper","DrawingManager","GlobalData","HairColorPicker","HelperTools","ParticleManager","SessionStorageHelper","ToolMoveMaster","UserDrawing","AdManager","Promotion","RewardFailed","MainScene","Eating","View6","View1","View2","View3","View4","View5"]);</pre></body></html>