コード例 #1
0
ファイル: controlSelection.cs プロジェクト: wasabicoat/Racer
    public void OnButtonClick(string ButtonName)
    {
        SoundController.Static.PlayClickSound();
        switch (ButtonName)
        {
        case "Back":

            ControlSelection.SetActive(false);
            LevelSelection.SetActive(true);
            break;

        case "Accel":
            selectedMode = controls.tilt;
            LoadingMenu.SetActive(true);
            ControlSelection.SetActive(false);

            break;

        case "Button":
            selectedMode = controls.buttons;
            LoadingMenu.SetActive(true);
            ControlSelection.SetActive(false);
            break;
        }
    }
コード例 #2
0
 public void LoadScene(int idx)
 {
     StartCoroutine(LoadSceneCor(idx));
     LoadingMenu.SetActive(true);
 }
コード例 #3
0
    // Start is called before the first frame update

    void Start()
    {
        MainMenu.SetActive(true);
        LevelSelection.SetActive(false);
        LoadingMenu.SetActive(false);
    }