diff options
author | jacopograndi <jacopo.grandi@outlook.it> | 2021-12-24 21:10:33 +0100 |
---|---|---|
committer | jacopograndi <jacopo.grandi@outlook.it> | 2021-12-24 21:10:33 +0100 |
commit | e9598b88841374301646a7115253ab38ac904e4c (patch) | |
tree | 0ddc46c3ebd34762408cb108a3dbfb98d669af85 /scripts/debug.gd | |
parent | 156420f2a4635a84390e8ff488d12b8f84fea94f (diff) |
working
Diffstat (limited to 'scripts/debug.gd')
-rw-r--r-- | scripts/debug.gd | 7 |
1 files changed, 3 insertions, 4 deletions
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() |