diff --git a/assets/Scene.ls b/assets/Scene.ls index 810b261..4001d65 100644 --- a/assets/Scene.ls +++ b/assets/Scene.ls @@ -56,6 +56,9 @@ "obj_candys": { "_$ref": "2gza421u" }, + "obj_block_colors": { + "_$ref": "gsnppavp" + }, "img_block_normal": { "_$ref": "cu3v74bo" }, @@ -3851,7 +3854,7 @@ { "_$id": "gsnppavp", "_$type": "HBox", - "name": "HBox", + "name": "colors", "x": 192, "y": 1804, "width": 696, diff --git a/src/utils/SpriteSwitch.ts.meta b/src/utils/SpriteSwitch.ts.meta deleted file mode 100644 index 7466dec..0000000 --- a/src/utils/SpriteSwitch.ts.meta +++ /dev/null @@ -1,3 +0,0 @@ -{ - "uuid": "81a88cce-fdad-44c5-a651-2ea3abe6582d" -} \ No newline at end of file diff --git a/src/views/Stage.ts b/src/views/Stage.ts index add0345..949c15a 100644 --- a/src/views/Stage.ts +++ b/src/views/Stage.ts @@ -19,21 +19,18 @@ export class Stage extends Laya.Script { public obj_candys: Laya.Box; private candys: Array = new Array(); + @property(Laya.Box) + public obj_block_colors: Laya.Box; @property(Laya.Image) public img_block_normal: Laya.Image; - @property(Laya.Image) public img_block_grey: Laya.Image; - @property(Laya.Image) public img_block_correct: Laya.Image; - @property(Laya.Image) public img_block_weak_correct: Laya.Image; - @property(Laya.Image) public img_block_wrong: Laya.Image; - @property(Laya.Image) public img_block_weak_wrong: Laya.Image; @@ -87,6 +84,8 @@ export class Stage extends Laya.Script { this.candys.push(candy); candy.onInit(i+1, this, this.onClickCandy) } + + this.obj_block_colors.visible = false } public onLoadStage(levelStr: string): void {