From 4ef256ab45222b742c7973a3538bd616b078e4cb Mon Sep 17 00:00:00 2001 From: "Matias A. Vallejos" Date: Tue, 23 Nov 2021 19:56:47 -0300 Subject: [PATCH] Update bugs in magnet destroyer async --- .../Assets/Common/Controller/PlayerRound.cs | 4 +++- Project.CasinoRoulette/Assets/Data/RewardFortune.asset | 6 +++--- .../Assets/Data/Table/CharacterTable.asset | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Project.CasinoRoulette/Assets/Common/Controller/PlayerRound.cs b/Project.CasinoRoulette/Assets/Common/Controller/PlayerRound.cs index 416c7ed27..584a6a1be 100644 --- a/Project.CasinoRoulette/Assets/Common/Controller/PlayerRound.cs +++ b/Project.CasinoRoulette/Assets/Common/Controller/PlayerRound.cs @@ -44,7 +44,7 @@ public void OnPayment(int value) characterTable.characterMoney.currentPayment.Value = value; characterTable.characterMoney.PaymentSystem(value); } - public void OnRoundFinish(bool isRound) + public async void OnRoundFinish(bool isRound) { if(isRound) return; @@ -55,6 +55,8 @@ public void OnRoundFinish(bool isRound) } characterTable.lastNumber = _lastNumber; characterTable.currentNumbers.Add(characterTable.lastNumber); + + await Task.Delay(TimeSpan.FromSeconds(2)); ResetTable(false); } public void OnGameClosed() diff --git a/Project.CasinoRoulette/Assets/Data/RewardFortune.asset b/Project.CasinoRoulette/Assets/Data/RewardFortune.asset index d2f242afc..c77ff4be9 100644 --- a/Project.CasinoRoulette/Assets/Data/RewardFortune.asset +++ b/Project.CasinoRoulette/Assets/Data/RewardFortune.asset @@ -12,7 +12,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: f59102095ea12f0469f099594c0a59ef, type: 3} m_Name: RewardFortune m_EditorClassIdentifier: - secondsToWaitReward: 3600 + secondsToWaitReward: 18000 rewardLabel: Let's Go! totalAngle: 20 sectionCount: 18 @@ -20,6 +20,6 @@ MonoBehaviour: isPlay: 0 isPayment: 0 rewardTimer: - value: 0h:59m:41s + value: Let's Go! isRewardPossible: - value: 0 + value: 1 diff --git a/Project.CasinoRoulette/Assets/Data/Table/CharacterTable.asset b/Project.CasinoRoulette/Assets/Data/Table/CharacterTable.asset index 2a5868a84..ded4afb41 100644 --- a/Project.CasinoRoulette/Assets/Data/Table/CharacterTable.asset +++ b/Project.CasinoRoulette/Assets/Data/Table/CharacterTable.asset @@ -38,5 +38,5 @@ MonoBehaviour: type: 2} currentTableActive: value: 1 - lastNumber: 36 + lastNumber: 5 lastTable: []