From c557f154aac42115186b6f5025f93011911b814b Mon Sep 17 00:00:00 2001 From: "COMPUTER\\EDY" <249929363@qq.com> Date: Thu, 2 Apr 2026 19:29:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Gacha/prefab.meta | 13 ------------- assets/Script/Map.ts | 17 ++++++++++++----- assets/Script/Wall.ts | 1 + 3 files changed, 13 insertions(+), 18 deletions(-) delete mode 100644 assets/Gacha/prefab.meta diff --git a/assets/Gacha/prefab.meta b/assets/Gacha/prefab.meta deleted file mode 100644 index 02307cd..0000000 --- a/assets/Gacha/prefab.meta +++ /dev/null @@ -1,13 +0,0 @@ -{ - "ver": "1.1.3", - "uuid": "e3fb03e9-da54-4ce9-ab3d-8fe90de464ad", - "importer": "folder", - "isBundle": false, - "bundleName": "", - "priority": 1, - "compressionType": {}, - "optimizeHotUpdate": {}, - "inlineSpriteFrames": {}, - "isRemoteBundle": {}, - "subMetas": {} -} \ No newline at end of file diff --git a/assets/Script/Map.ts b/assets/Script/Map.ts index e049113..4a4a01e 100644 --- a/assets/Script/Map.ts +++ b/assets/Script/Map.ts @@ -1606,6 +1606,7 @@ export default class MapConroler extends cc.Component { this.revolvingWallArray[startPos][0].getChildByName("wall").getComponent("Wall").revolvingColor = 0; let sp = cc.instantiate(this.wallRevolvingPrefab); sp.parent = this.node; + sp.color = cc.Color.BLACK; sp.zIndex = 999; sp.angle = startAngle; sp.width = startRotate.width; @@ -1613,7 +1614,7 @@ export default class MapConroler extends cc.Component { sp.x = startPosition.x; sp.y = startPosition.y; if (this.revolving_state == 2) sp.getChildByName("arror").scaleX = 1; - + wall[0].getChildByName("wall").getComponent("Wall").changeRevolvingWallColor(color); cc.tween(sp) .to(0.3, { x: endPosition.x, y: endPosition.y, width: endRotate.width, height: endRotate.height, scaleX: 1.1, scaleY: 1.1, angle: endAngle @@ -1621,7 +1622,6 @@ export default class MapConroler extends cc.Component { .to(0.1, { scaleX: 0.9, scaleY: 0.9 }) .to(0.1, { scaleX: 1, scaleY: 1 }) .call(() => { - wall[0].getChildByName("wall").getComponent("Wall").changeRevolvingWallColor(color); sp.destroy(); }) .start(); @@ -3920,10 +3920,17 @@ export default class MapConroler extends cc.Component { this.lastBlockClickTime = Date.now(); this.noBlockClickDuration = 0; - let rippleShrink = this.node.parent.getChildByName("Bottom").getChildByName("rippleShrink").getComponent('RippleShrink'); - if (rippleShrink && rippleShrink.stopRipple) { - rippleShrink.stopRipple(); + if (this.node) { + if (this.node.parent) { + if (this.node.parent.getChildByName("Bottom")) { + let rippleShrink = this.node.parent.getChildByName("Bottom").getChildByName("rippleShrink").getComponent('RippleShrink'); + if (rippleShrink && rippleShrink.stopRipple) { + rippleShrink.stopRipple(); + } + } + } } + } //使用时间道具 useTimeProp() { diff --git a/assets/Script/Wall.ts b/assets/Script/Wall.ts index 04cec67..7191ab0 100644 --- a/assets/Script/Wall.ts +++ b/assets/Script/Wall.ts @@ -951,6 +951,7 @@ export default class Wall extends cc.Component { // - 逆时针带色门(special==11) // ============================================ changeRevolvingWallColor(color) { + // console.log("____________旋转门颜色改变:", color); // 如果有带色旋转门节点 if (this.revolvingColorNode) { // 如果传了颜色参数,更新旋转门颜色