Пример #1
0
    public void GoToNextStage()
    {
        if (VROption.finish_idx == 7)
        {
            nextStageBtn.GetComponentInChildren <Text>().text = "結束實驗";
            Application.Quit();
        }
        VROption vr = new VROption();

        vr.nextStage();
    }
Пример #2
0
    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);
            }
        }
    }