Commit 3530fd41 authored by limingzhe's avatar limingzhe

fix: debug

parent 93adc4aa
No preview for this file type
...@@ -34,6 +34,8 @@ cc.Class({ ...@@ -34,6 +34,8 @@ cc.Class({
}, },
intervalIdArray: [],
ctor() { ctor() {
this._imageResList = []; this._imageResList = [];
this._audioResList = []; this._audioResList = [];
...@@ -58,9 +60,9 @@ cc.Class({ ...@@ -58,9 +60,9 @@ cc.Class({
this.showKnockKnock(); this.showKnockKnock();
this.showFish(); this.showFish();
setInterval(() => { this.intervalIdArray.push(setInterval(() => {
this.showFish(); this.showFish();
}, 9000); }, 9000));
}, },
getData(func) { getData(func) {
...@@ -263,7 +265,7 @@ cc.Class({ ...@@ -263,7 +265,7 @@ cc.Class({
}, },
createBubbles() { createBubbles() {
setInterval(() => { this.intervalIdArray.push(setInterval(() => {
if (Math.random() < 0.6) { if (Math.random() < 0.6) {
return; return;
} }
...@@ -287,20 +289,20 @@ cc.Class({ ...@@ -287,20 +289,20 @@ cc.Class({
.union() .union()
.repeatForever() .repeatForever()
.start(); .start();
}, 900); }, 900));
}, },
showKnockKnock() { showKnockKnock() {
const nodeKnockMask = cc.find('Canvas/NodeBg/NodeKnockMask'); const nodeKnockMask = cc.find('Canvas/NodeBg/NodeKnockMask');
const heightList = [40, 80, 200, 200, 0]; const heightList = [40, 80, 200, 200, 0];
let idx = 0; let idx = 0;
setInterval(() => { this.intervalIdArray.push(setInterval(() => {
if (idx >= heightList.length) { if (idx >= heightList.length) {
idx = 0; idx = 0;
} }
nodeKnockMask.height = heightList[idx]; nodeKnockMask.height = heightList[idx];
idx++; idx++;
}, 500); }, 500));
}, },
hideKnockKnock() { hideKnockKnock() {
...@@ -345,7 +347,14 @@ cc.Class({ ...@@ -345,7 +347,14 @@ cc.Class({
playEffect(name, loop, volume) { playEffect(name, loop, volume) {
let musicComponent = cc.find('Canvas/MusicNode').getComponent('Z_04_syys_MusicNode'); let musicComponent = cc.find('Canvas/MusicNode').getComponent('Z_04_syys_MusicNode');
musicComponent.playEffect(name, loop, volume); musicComponent.playEffect(name, loop, volume);
} },
onDestroy() {
this.intervalIdArray.forEach(intervalId => {
clearInterval(intervalId);
});
this.intervalIdArray = [];
},
// update (dt) {}, // update (dt) {},
}); });
......
This diff is collapsed.
...@@ -13,13 +13,13 @@ ...@@ -13,13 +13,13 @@
"type": "dock-h", "type": "dock-h",
"children": [ "children": [
{ {
"width": 265.328125, "width": 265,
"height": 964, "height": 964,
"type": "dock-v", "type": "dock-v",
"children": [ "children": [
{ {
"width": 265.328125, "width": 265,
"height": 456.171875, "height": 456,
"type": "panel", "type": "panel",
"active": 0, "active": 0,
"children": [ "children": [
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
] ]
}, },
{ {
"width": 265.328125, "width": 265,
"height": 504.828125, "height": 505,
"type": "panel", "type": "panel",
"active": 0, "active": 0,
"children": [ "children": [
...@@ -38,18 +38,18 @@ ...@@ -38,18 +38,18 @@
] ]
}, },
{ {
"width": 996.28125, "width": 997,
"height": 964, "height": 964,
"type": "dock-v", "type": "dock-v",
"children": [ "children": [
{ {
"width": 996.28125, "width": 997,
"height": 504.828125, "height": 505,
"type": "dock-h", "type": "dock-h",
"children": [ "children": [
{ {
"width": 649.59375, "width": 650.65625,
"height": 504.828125, "height": 505,
"type": "panel", "type": "panel",
"active": 0, "active": 0,
"children": [ "children": [
...@@ -57,8 +57,8 @@ ...@@ -57,8 +57,8 @@
] ]
}, },
{ {
"width": 343.671875, "width": 343.34375,
"height": 504.828125, "height": 505,
"type": "panel", "type": "panel",
"active": 0, "active": 0,
"children": [ "children": [
...@@ -68,8 +68,8 @@ ...@@ -68,8 +68,8 @@
] ]
}, },
{ {
"width": 996.28125, "width": 997,
"height": 456.171875, "height": 456,
"type": "panel", "type": "panel",
"active": 0, "active": 0,
"children": [ "children": [
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
] ]
}, },
{ {
"width": 395.390625, "width": 395,
"height": 964, "height": 964,
"type": "panel", "type": "panel",
"active": 0, "active": 0,
...@@ -103,7 +103,8 @@ ...@@ -103,7 +103,8 @@
"inspector", "inspector",
"cocos-services" "cocos-services"
] ]
} },
"worker": {}
}, },
"panels": {}, "panels": {},
"panelLabelWidth": {} "panelLabelWidth": {}
......
{"version":"1.0.8","stats":{"/Users/limingzhe/Documents/workspace/pro_hw/Z_04_syys/temp/quick-scripts/src/__qc_index__.js":"2025-08-28T08:40:24.341Z","/Users/limingzhe/Documents/workspace/pro_hw/Z_04_syys/temp/quick-scripts/src/assets/Z_04_syys/scene/Z_04_syys.js":"2025-08-28T08:40:24.330Z","/Users/limingzhe/Documents/workspace/pro_hw/Z_04_syys/temp/quick-scripts/src/assets/Z_04_syys/script/Z_04_syys_defaultData.js":"2025-08-28T08:40:24.331Z","/Users/limingzhe/Documents/workspace/pro_hw/Z_04_syys/temp/quick-scripts/src/assets/Z_04_syys/prefabs/Z_04_syys_NodeFish.js":"2025-08-28T08:40:24.331Z","/Users/limingzhe/Documents/workspace/pro_hw/Z_04_syys/temp/quick-scripts/src/assets/Z_04_syys/script/Z_04_syys_MusicNode.js":"2025-08-28T08:40:24.330Z","/Users/limingzhe/Documents/workspace/pro_hw/Z_04_syys/temp/quick-scripts/src/assets/Z_04_syys/script/Z_04_syys_utils.js":"2025-08-28T08:40:24.331Z"}} {"version":"1.0.8","stats":{"/Users/limingzhe/Documents/workspace/pro_hw/Z_04_syys/temp/quick-scripts/src/__qc_index__.js":"2025-09-02T05:54:01.182Z","/Users/limingzhe/Documents/workspace/pro_hw/Z_04_syys/temp/quick-scripts/src/assets/Z_04_syys/script/Z_04_syys_defaultData.js":"2025-09-02T05:54:01.167Z","/Users/limingzhe/Documents/workspace/pro_hw/Z_04_syys/temp/quick-scripts/src/assets/Z_04_syys/script/Z_04_syys_utils.js":"2025-09-02T05:54:01.168Z","/Users/limingzhe/Documents/workspace/pro_hw/Z_04_syys/temp/quick-scripts/src/assets/Z_04_syys/scene/Z_04_syys.js":"2025-09-02T05:54:01.167Z","/Users/limingzhe/Documents/workspace/pro_hw/Z_04_syys/temp/quick-scripts/src/assets/Z_04_syys/script/Z_04_syys_MusicNode.js":"2025-09-02T05:54:01.166Z","/Users/limingzhe/Documents/workspace/pro_hw/Z_04_syys/temp/quick-scripts/src/assets/Z_04_syys/prefabs/Z_04_syys_NodeFish.js":"2025-09-02T05:54:01.169Z"}}
This source diff could not be displayed because it is too large. You can view the blob instead.
(function () { (function () {
var scripts = [{"deps":{"./assets/Z_04_syys/script/Z_04_syys_utils":5,"./assets/Z_04_syys/script/Z_04_syys_defaultData":3,"./assets/Z_04_syys/scene/Z_04_syys":1,"./assets/Z_04_syys/prefabs/Z_04_syys_NodeFish":2,"./assets/Z_04_syys/script/Z_04_syys_MusicNode":4},"path":"preview-scripts/__qc_index__.js"},{"deps":{"../script/Z_04_syys_defaultData":3,"../script/Z_04_syys_utils":5},"path":"preview-scripts/assets/Z_04_syys/scene/Z_04_syys.js"},{"deps":{"../script/Z_04_syys_utils":5},"path":"preview-scripts/assets/Z_04_syys/prefabs/Z_04_syys_NodeFish.js"},{"deps":{},"path":"preview-scripts/assets/Z_04_syys/script/Z_04_syys_defaultData.js"},{"deps":{},"path":"preview-scripts/assets/Z_04_syys/script/Z_04_syys_MusicNode.js"},{"deps":{},"path":"preview-scripts/assets/Z_04_syys/script/Z_04_syys_utils.js"}]; var scripts = [{"deps":{"./assets/Z_04_syys/script/Z_04_syys_defaultData":1,"./assets/Z_04_syys/script/Z_04_syys_utils":2,"./assets/Z_04_syys/script/Z_04_syys_MusicNode":4,"./assets/Z_04_syys/scene/Z_04_syys":3,"./assets/Z_04_syys/prefabs/Z_04_syys_NodeFish":5},"path":"preview-scripts/__qc_index__.js"},{"deps":{},"path":"preview-scripts/assets/Z_04_syys/script/Z_04_syys_defaultData.js"},{"deps":{},"path":"preview-scripts/assets/Z_04_syys/script/Z_04_syys_utils.js"},{"deps":{"../script/Z_04_syys_utils":2,"../script/Z_04_syys_defaultData":1},"path":"preview-scripts/assets/Z_04_syys/scene/Z_04_syys.js"},{"deps":{},"path":"preview-scripts/assets/Z_04_syys/script/Z_04_syys_MusicNode.js"},{"deps":{"../script/Z_04_syys_utils":2},"path":"preview-scripts/assets/Z_04_syys/prefabs/Z_04_syys_NodeFish.js"}];
var entries = ["preview-scripts/__qc_index__.js"]; var entries = ["preview-scripts/__qc_index__.js"];
var bundleScript = 'preview-scripts/__qc_bundle__.js'; var bundleScript = 'preview-scripts/__qc_bundle__.js';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment