From a5dbb20adc691e495947344d2f50df63b6b35e6c Mon Sep 17 00:00:00 2001 From: "COMPUTER\\EDY" <249929363@qq.com> Date: Wed, 22 Oct 2025 19:02:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=98=E8=89=B2=E9=97=A8BU?= =?UTF-8?q?G?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Script/Wall.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/Script/Wall.ts b/assets/Script/Wall.ts index d7a20a3..0a575a4 100644 --- a/assets/Script/Wall.ts +++ b/assets/Script/Wall.ts @@ -513,11 +513,11 @@ export default class Wall extends cc.Component { if (this.colorArray.length > 1 && this.color == this.colorArray[0]) { let firstItem = this.colorArray.shift(); // 移除第一项 this.colorArray.push(firstItem); // 将第一项添加到数组末尾 - this.updateColor(); - } - else if (this.colorArray.length == 1 && this.color != this.colorArray[0]) { - this.updateColor(); } + // else if (this.colorArray.length == 1 && this.color != this.colorArray[0]) { + // this.updateColor(); + // } + this.updateColor(); } updateColor() {