From aa7a9f34be013129691d9cbe7efce825b4bd40e0 Mon Sep 17 00:00:00 2001 From: ruanwujing <1220792244@qq.com> Date: Thu, 11 Apr 2024 17:42:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=8A=82=E5=8F=B0=E7=90=83=E6=97=8B?= =?UTF-8?q?=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/scripts/testComponents/TestBilliardsParent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/scripts/testComponents/TestBilliardsParent.ts b/assets/scripts/testComponents/TestBilliardsParent.ts index 4329ad9..9968e9e 100644 --- a/assets/scripts/testComponents/TestBilliardsParent.ts +++ b/assets/scripts/testComponents/TestBilliardsParent.ts @@ -8,7 +8,7 @@ export class TestBilliardsParent extends Component { for (let i = 0; i < this.node.children.length; i++) { let ball:TestBilliards = this.node.children[i].getComponent(TestBilliards); - ball.scrollSpeed = (i + 1); + ball.scrollSpeed = i % 4 + 1; let ax = i % 4; let ay = Math.floor(i / 4);