aboutsummaryrefslogtreecommitdiff
path: root/scripts/debug.gd
diff options
context:
space:
mode:
authorjacopograndi <jacopo.grandi@outlook.it>2021-12-24 21:10:33 +0100
committerjacopograndi <jacopo.grandi@outlook.it>2021-12-24 21:10:33 +0100
commite9598b88841374301646a7115253ab38ac904e4c (patch)
tree0ddc46c3ebd34762408cb108a3dbfb98d669af85 /scripts/debug.gd
parent156420f2a4635a84390e8ff488d12b8f84fea94f (diff)
working
Diffstat (limited to 'scripts/debug.gd')
-rw-r--r--scripts/debug.gd7
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()