Пример #1
0
    public void StartGame(int Mode)
    {
        StartGameMenu.SetActive(false);
        GameUIPanel.SetActive(true);
        WinnerPanel.SetActive(false);
        InfoPanel.SetActive(true);
        Main.HideBackgroundElements();
        switch (Mode)
        {
        case 1:
            Player2CtrlPanel.SetActive(false);
            break;

        case 2:
            Player2CtrlPanel.SetActive(true);
            break;

        case 3:
            Player2CtrlPanel.SetActive(false);
            break;
        }
        MenuCam.CameraMode  = 2;
        GameMode            = Mode;
        GameStartBtnPressed = true;
    }
Пример #2
0
 public void OpenMainMenu()
 {
     Menu.SetActive(true);
     StartGameMenu.SetActive(false);
     OptionsMenu.SetActive(false);
     GameUIPanel.SetActive(false);
 }
Пример #3
0
 public void OpenOptionsMenu()
 {
     Menu.SetActive(false);
     StartGameMenu.SetActive(false);
     OptionsMenu.SetActive(true);
 }