Skip to content

Commit

Permalink
Update bugs in magnet destroyer async
Browse files Browse the repository at this point in the history
  • Loading branch information
Matias A. Vallejos committed Nov 23, 2021
1 parent 1a7ce1b commit 4ef256a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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()
Expand Down
6 changes: 3 additions & 3 deletions Project.CasinoRoulette/Assets/Data/RewardFortune.asset
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ 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
payment: 1027000088130000e8030000f401000010270000e803000088130000e8030000f401000010270000e803000088130000e8030000f40100001027000088130000e8030000f4010000
isPlay: 0
isPayment: 0
rewardTimer:
value: 0h:59m:41s
value: Let's Go!
isRewardPossible:
value: 0
value: 1
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ MonoBehaviour:
type: 2}
currentTableActive:
value: 1
lastNumber: 36
lastNumber: 5
lastTable: []

0 comments on commit 4ef256a

Please sign in to comment.