diff options
author | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-16 17:14:36 +0100 |
---|---|---|
committer | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-16 17:14:36 +0100 |
commit | 5781b7dad68c3e01d83365f73b0d35d9e5252f97 (patch) | |
tree | dada65ab375ed8287b33e6ffe023f5df5e666d24 /scripts/turret.gd | |
parent | 8e5358aaefa1df729ffc02047e53b62705d6b3b1 (diff) |
control system
Diffstat (limited to 'scripts/turret.gd')
-rw-r--r-- | scripts/turret.gd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/turret.gd b/scripts/turret.gd index 59d6146..6fbddeb 100644 --- a/scripts/turret.gd +++ b/scripts/turret.gd @@ -21,7 +21,7 @@ var info : Dictionary var cooldown_timer = 0 func _ready(): - var root = get_tree().root.get_child(0) + var root = get_tree().root.get_node("world") _path = root.get_node("path") _enemies = root.get_node("enemies") _projectiles_holder = root.get_node("projectiles") |