From 5781b7dad68c3e01d83365f73b0d35d9e5252f97 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Sun, 16 Jan 2022 17:14:36 +0100 Subject: control system --- scripts/path.gd | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts/path.gd') 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 -- cgit v1.2.3-54-g00ecf