Files
rthythm_archor_game/scenes/main/main.gd
T
2026-07-06 22:59:47 -07:00

19 lines
454 B
GDScript

extends Node2D
@onready var stage: Node = $Stage
@onready var ui: Node = $UILayer/UI
func _ready() -> void:
if ui != null and ui.has_method("bind_debug_actor"):
ui.call("bind_debug_actor", get_player())
if ui != null and ui.has_method("bind_boss_actor"):
ui.call("bind_boss_actor", get_boss())
func get_player() -> Node:
return stage.get_node("ActorsContainer/Player")
func get_boss() -> Node:
return stage.get_node("ActorsContainer/Boss")