Fix: GameOver not working after loading game
This commit is contained in:
parent
c4bdfcba8d
commit
e1dac6f649
|
@ -14,6 +14,7 @@ func _ready():
|
||||||
SaverLoader.is_loading = false
|
SaverLoader.is_loading = false
|
||||||
|
|
||||||
MainInstances.Player.connect("hit_door", self, "_on_Player_hit_door")
|
MainInstances.Player.connect("hit_door", self, "_on_Player_hit_door")
|
||||||
|
MainInstances.Player.connect("died", self, "_on_Player_died")
|
||||||
|
|
||||||
func _on_Player_hit_door(door):
|
func _on_Player_hit_door(door):
|
||||||
# Executes the function after the current tick of the game is done, to make
|
# Executes the function after the current tick of the game is done, to make
|
||||||
|
|
Loading…
Reference in New Issue