13 lines
308 B
GDScript
13 lines
308 B
GDScript
extends Button
|
|
|
|
## Represents button which changes menu resource on parent Menu
|
|
class_name TransitButton
|
|
|
|
## This is used when button_up is activated
|
|
var id: int = -1
|
|
|
|
func _init():
|
|
get_tree().create_timer(0.05).timeout.connect(_ready)
|
|
|
|
func _ready():
|
|
button_up.connect(get_parent().transit_menu.bind(id))
|