28 lines
599 B
GDScript
28 lines
599 B
GDScript
extends Control
|
|
|
|
signal character_selected( slot )
|
|
signal return_button_pressed
|
|
|
|
func _ready():
|
|
# Called when the node is added to the scene for the first time.
|
|
# Initialization here
|
|
pass
|
|
|
|
#func _process(delta):
|
|
# # Called every frame. Delta is time since last frame.
|
|
# # Update game logic here.
|
|
# pass
|
|
|
|
|
|
func _on_return_button_pressed():
|
|
emit_signal( "return_button_pressed" )
|
|
|
|
func _on_slot0_character_button_pressed():
|
|
emit_signal( "character_selected", 0 )
|
|
func _on_slot1_character_button_pressed():
|
|
emit_signal( "character_selected", 1 )
|
|
|
|
|
|
|
|
|
|
|