15 lines
292 B
GDScript
15 lines
292 B
GDScript
extends Node2D
|
|
|
|
signal loadFromGameState
|
|
signal unloadFromScreen
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
load_from_game_state()
|
|
|
|
func load_from_game_state():
|
|
emit_signal("loadFromGameState")
|
|
|
|
func unload():
|
|
emit_signal("unloadFromScreen")
|