fix elapsed timer on new round
This commit is contained in:
parent
7889e71581
commit
0b86031505
2 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,7 @@ var game_ended=false
|
|||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
Gamestate.resetTimeElapsed()
|
||||
countdown.start()
|
||||
countdown_label.visible=true
|
||||
|
||||
|
|
|
@ -56,3 +56,6 @@ func addTimeElapsed(delta):
|
|||
|
||||
func getTimeElapsed():
|
||||
return time_elapsed
|
||||
|
||||
func resetTimeElapsed():
|
||||
time_elapsed=0
|
||||
|
|
Loading…
Reference in a new issue