aboutsummaryrefslogtreecommitdiff
path: root/scripts/path.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/path.gd')
-rw-r--r--scripts/path.gd8
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