14 lines
191 B
GDScript
14 lines
191 B
GDScript
extends Button
|
|
|
|
class_name MenuAction
|
|
|
|
var id: int = -1
|
|
|
|
func _init():
|
|
get_tree().create_timer(0.05).timeout.connect(_ready)
|
|
|
|
func _ready():
|
|
button_up.connect(action)
|
|
|
|
func action():
|
|
pass
|