Browse Source

free timer after use

Arnaud Vergnet 3 years ago
parent
commit
42c27a5e5f
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      mini-game/MiniGame.gd

+ 2
- 1
mini-game/MiniGame.gd View File

@@ -50,12 +50,13 @@ func start():
50 50
 		start_timer_UI.update_timer(String(n))
51 51
 		yield(t, "timeout")
52 52
 	start_timer_UI.update_timer("GO !")
53
+	yield(t, "timeout")
54
+	t.queue_free()
53 55
 	foreground.start()
54 56
 	player.start(game_mode)
55 57
 	spawner.start()
56 58
 	instructionsUI._init()
57 59
 	scoreUI.start(game_mode)
58
-	yield(t, "timeout")
59 60
 	start_timer_UI.hide()
60 61
 
61 62
 

Loading…
Cancel
Save