Save/Load rework
This commit is contained in:
@@ -8,12 +8,7 @@ extends Control
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
|
||||
#Hiding everything
|
||||
hide()
|
||||
for node in [background, back_to_menu, reload_checkpoint, message]:
|
||||
node.hide()
|
||||
|
||||
reset()
|
||||
|
||||
|
||||
#Reveals the game over screen
|
||||
@@ -30,4 +25,10 @@ func reveal():
|
||||
node.modulate.a = 0.0
|
||||
node.show()
|
||||
animation_player.play("fade_in")
|
||||
|
||||
|
||||
|
||||
#Resets to initial state
|
||||
func reset():
|
||||
for node in [background, back_to_menu, reload_checkpoint, message]:
|
||||
node.hide()
|
||||
hide()
|
||||
|
||||
Reference in New Issue
Block a user