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/path.gd | |
parent | 8e5358aaefa1df729ffc02047e53b62705d6b3b1 (diff) |
control system
Diffstat (limited to 'scripts/path.gd')
-rw-r--r-- | scripts/path.gd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/path.gd b/scripts/path.gd index f8c0fb7..3774bfe 100644 --- a/scripts/path.gd +++ b/scripts/path.gd @@ -8,6 +8,14 @@ const dirs = [ var nodes = [] + +func refresh_path (vis): + if vis: + show() + else: + var _res = load_nodes() + hide() + func next_node (node, dir): var pos : Vector3 = node.transform.origin |