public void GoToNextStage() { if (VROption.finish_idx == 7) { nextStageBtn.GetComponentInChildren <Text>().text = "結束實驗"; Application.Quit(); } VROption vr = new VROption(); vr.nextStage(); }
public void SetUpOptions(Transform parent) { currentOptions = new List <VROption>(); foreach (Transform child in parent) { VROption option = child.GetComponent <VROption>(); if (option != null) { option.DoShow(); currentOptions.Add(option); } } }