From e9598b88841374301646a7115253ab38ac904e4c Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Fri, 24 Dec 2021 21:10:33 +0100 Subject: working --- scripts/debug.gd | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'scripts/debug.gd') diff --git a/scripts/debug.gd b/scripts/debug.gd index 339eec7..b65bd79 100644 --- a/scripts/debug.gd +++ b/scripts/debug.gd @@ -5,9 +5,9 @@ var _path var _enemies func _ready(): - _path = get_tree().root.get_child(0).find_node("path") - _player = get_tree().root.get_child(0).find_node("player") - _enemies = get_tree().root.get_child(0).find_node("enemies") + _path = get_tree().root.get_child(0).get_node("path") + _player = get_tree().root.get_child(0).get_node("player") + _enemies = get_tree().root.get_child(0).get_node("enemies") func _process(delta): pass @@ -16,7 +16,6 @@ func _process(delta): func _on_Button_button_down(): _enemies.spawn() - func _on_Button2_button_down(): var res = _path.load_nodes() _path.hide() -- cgit v1.2.3-54-g00ecf