修复BUG

This commit is contained in:
COMPUTER\EDY 2026-04-02 19:29:28 +08:00
parent ad85327fe9
commit c557f154aa
3 changed files with 13 additions and 18 deletions

View File

@ -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": {}
}

View File

@ -1606,6 +1606,7 @@ export default class MapConroler extends cc.Component {
this.revolvingWallArray[startPos][0].getChildByName("wall").getComponent("Wall").revolvingColor = 0; this.revolvingWallArray[startPos][0].getChildByName("wall").getComponent("Wall").revolvingColor = 0;
let sp = cc.instantiate(this.wallRevolvingPrefab); let sp = cc.instantiate(this.wallRevolvingPrefab);
sp.parent = this.node; sp.parent = this.node;
sp.color = cc.Color.BLACK;
sp.zIndex = 999; sp.zIndex = 999;
sp.angle = startAngle; sp.angle = startAngle;
sp.width = startRotate.width; sp.width = startRotate.width;
@ -1613,7 +1614,7 @@ export default class MapConroler extends cc.Component {
sp.x = startPosition.x; sp.x = startPosition.x;
sp.y = startPosition.y; sp.y = startPosition.y;
if (this.revolving_state == 2) sp.getChildByName("arror").scaleX = 1; if (this.revolving_state == 2) sp.getChildByName("arror").scaleX = 1;
wall[0].getChildByName("wall").getComponent("Wall").changeRevolvingWallColor(color);
cc.tween(sp) cc.tween(sp)
.to(0.3, { .to(0.3, {
x: endPosition.x, y: endPosition.y, width: endRotate.width, height: endRotate.height, scaleX: 1.1, scaleY: 1.1, angle: endAngle 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: 0.9, scaleY: 0.9 })
.to(0.1, { scaleX: 1, scaleY: 1 }) .to(0.1, { scaleX: 1, scaleY: 1 })
.call(() => { .call(() => {
wall[0].getChildByName("wall").getComponent("Wall").changeRevolvingWallColor(color);
sp.destroy(); sp.destroy();
}) })
.start(); .start();
@ -3920,11 +3920,18 @@ export default class MapConroler extends cc.Component {
this.lastBlockClickTime = Date.now(); this.lastBlockClickTime = Date.now();
this.noBlockClickDuration = 0; this.noBlockClickDuration = 0;
if (this.node) {
if (this.node.parent) {
if (this.node.parent.getChildByName("Bottom")) {
let rippleShrink = this.node.parent.getChildByName("Bottom").getChildByName("rippleShrink").getComponent('RippleShrink'); let rippleShrink = this.node.parent.getChildByName("Bottom").getChildByName("rippleShrink").getComponent('RippleShrink');
if (rippleShrink && rippleShrink.stopRipple) { if (rippleShrink && rippleShrink.stopRipple) {
rippleShrink.stopRipple(); rippleShrink.stopRipple();
} }
} }
}
}
}
//使用时间道具 //使用时间道具
useTimeProp() { useTimeProp() {
if (this.propCanbeUse) { if (this.propCanbeUse) {

View File

@ -951,6 +951,7 @@ export default class Wall extends cc.Component {
// - 逆时针带色门special==11 // - 逆时针带色门special==11
// ============================================ // ============================================
changeRevolvingWallColor(color) { changeRevolvingWallColor(color) {
// console.log("____________旋转门颜色改变:", color);
// 如果有带色旋转门节点 // 如果有带色旋转门节点
if (this.revolvingColorNode) { if (this.revolvingColorNode) {
// 如果传了颜色参数,更新旋转门颜色 // 如果传了颜色参数,更新旋转门颜色