workin on lines

This commit is contained in:
ntr committed 2022-02-05 21:17:42 +11:00
1 parent c65e20084e
commit f9a48f2695
10 files changed
+8190 -2544

No files matched your search

+9 -3
View File
@@ -11,6 +11,7 @@ public class Loader : MonoBehaviour {
public GameObject[] vis;
public GameObject menu;
public Text currentVis;
private int _current = 0;
private int _count;
@@ -40,7 +41,7 @@ public class Loader : MonoBehaviour {
Debug.Log("Microphone: " + device);
}
vis[_current].SetActive(true);
LoadVis(0);
}
void Update() {
@@ -53,11 +54,16 @@ public class Loader : MonoBehaviour {
}
}
void LoadVis(int i) {
_current = i;
vis[i].SetActive(true);
currentVis.text = vis[i].name;
}
void LoadNextVis() {
vis[_current].SetActive(false);
int next = (_current + 1) % _count;
_current = next;
vis[next].SetActive(true);
LoadVis(next);
}
void ToggleMenu(bool visible) {