Ejemplo n.º 1
0
    public void OnButtonClick(string ButtonName)
    {
        SoundController.Static.PlayClickSound();
        switch (ButtonName)
        {
        case "Back":
            carSelectionParent.SetActive(true);
            LevelSelection.SetActive(false);
            CarMeshparent.SetActive(true);
            break;

        case "highway":

            levelName = "highWayGameplay";
            ControlSelection.SetActive(true);
            LevelSelection.SetActive(false);

            break;

        case "city":

            levelName = "cityGameplay";
            ControlSelection.SetActive(true);
            LevelSelection.SetActive(false);
            break;
        }
    }
Ejemplo n.º 2
0
    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;
        }
    }
Ejemplo n.º 3
0
 public void OnClickPlayBtn()
 {
     MainMenu.SetActive(false);
     LevelSelection.SetActive(true);
 }
Ejemplo n.º 4
0
    // Start is called before the first frame update

    void Start()
    {
        MainMenu.SetActive(true);
        LevelSelection.SetActive(false);
        LoadingMenu.SetActive(false);
    }
Ejemplo n.º 5
0
 public void LevelSelected()
 {
     LevelCanvas.worldCamera = DummyCamera;
     LevelSelection.SetActive(false);
     MainCanvas.enabled = true;
 }
Ejemplo n.º 6
0
 public void SelectLevel()
 {
     MainCanvas.enabled = false;
     LevelSelection.SetActive(true);
     LevelCanvas.worldCamera = MainCamera;
 }