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() {