fix crash on spamming finish button
This commit is contained in:
parent
a086a7779b
commit
eaa71d1d73
@ -67,7 +67,7 @@ class HUD: GKEntity {
|
||||
onButtonPress: {DataService.sharedInstance.localRoundData.hasAttackBoost = true}
|
||||
)
|
||||
|
||||
finishButton = ButtonNode(
|
||||
finishButton = SingeClickButtonNode(
|
||||
textureName: "yellow_button04",
|
||||
text: "Finish Round",
|
||||
isEnabled: true,
|
||||
@ -111,6 +111,7 @@ class HUD: GKEntity {
|
||||
|
||||
func startWithDuration(){
|
||||
roundTimer.startTimer()
|
||||
finishButton.isEnabled = true
|
||||
self.roundTimer.roundEnded = "Syncing"
|
||||
RoundCalculatorService.sharedInstance.isCalculating = false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user