From 52ef9b1666b57e3ea81391119910d53858b71ed9 Mon Sep 17 00:00:00 2001 From: tiendat3699 <96950844+tiendat3699@users.noreply.github.com> Date: Thu, 20 Jun 2024 15:07:39 +0700 Subject: [PATCH] chore --- assets/_Game/Scripts/Gacha/LuckyWheel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/_Game/Scripts/Gacha/LuckyWheel.ts b/assets/_Game/Scripts/Gacha/LuckyWheel.ts index 1123cad..62c0621 100644 --- a/assets/_Game/Scripts/Gacha/LuckyWheel.ts +++ b/assets/_Game/Scripts/Gacha/LuckyWheel.ts @@ -129,7 +129,6 @@ export default class LuckyWheel extends GachaBase { public async spin() { if (this._spinning) return; - this._spinning = true; AudioManager.playSfx(this.btnSfx); this._random = this._allCards.getRandomIndex(); this.animationHandler.clearTrack(0); @@ -138,5 +137,6 @@ export default class LuckyWheel extends GachaBase { this._timeSpin = randomRangeInt(10, 15); this._maxAngle = 360 * this._timeSpin; this._preAngle = this._maxAngle; + this._spinning = true; } }