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/path.gd | |
parent | 156420f2a4635a84390e8ff488d12b8f84fea94f (diff) |
working
Diffstat (limited to 'scripts/path.gd')
-rw-r--r-- | scripts/path.gd | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/scripts/path.gd b/scripts/path.gd index bd3b40f..f8c0fb7 100644 --- a/scripts/path.gd +++ b/scripts/path.gd @@ -8,9 +8,6 @@ const dirs = [ var nodes = [] - -func _ready(): - pass # Replace with function body. func next_node (node, dir): var pos : Vector3 = node.transform.origin @@ -59,13 +56,13 @@ func load_nodes (): func hide (): for child in get_children(): - var mesh = child.find_node("MeshInstance") + var mesh = child.get_node("MeshInstance") mesh.visible = false func show (): for child in get_children(): - var mesh = child.find_node("MeshInstance") - mesh.visible = false + var mesh = child.get_node("MeshInstance") + mesh.visible = true # Called every frame. 'delta' is the elapsed time since the previous frame. #func _process(delta): |