コード例 #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
ファイル: Program.cs プロジェクト: MrSwiss/OpenBound
        static void CreateLoadingScreen()
        {
            Thread t = new Thread(() =>
            {
                LoadingMenu lS       = new LoadingMenu();
                lS.Timer1TickAction += () =>
                {
                    if (!Parameter.IsLoadingGameAssets)
                    {
                        lS.Close();
                    }
                };
                lS.ShowDialog();
            });

            t.IsBackground = false;
            t.Start();
        }
コード例 #3
0
 public void LoadScene(int idx)
 {
     StartCoroutine(LoadSceneCor(idx));
     LoadingMenu.SetActive(true);
 }
コード例 #4
0
    // Start is called before the first frame update

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