Пример #1
0
    void Select()
    {
        if (controllerTask.SerectKey(true))
        {
            nowSelect--;
            if (nowSelect < 0)
            {
                nowSelect = stageNum - 1;
            }
        }
        else if (controllerTask.SerectKey(false))
        {
            nowSelect++;
            if (nowSelect >= stageNum)
            {
                nowSelect = 0;
            }
        }

        if (controllerTask.EnterButton())
        {
            GameTask.stageName = texts[nowSelect].name;
            Debug.Log(GameTask.stageName);
            SceneManager.LoadScene("Main");
        }
    }
Пример #2
0
 // Start is called before the first frame update
 void Update()
 {
     if (controllerTask.EnterButton())
     {
         SceneManager.LoadScene("Title");
     }
 }