Exemple #1
0
 public void press()
 {
     Menu2.SetActive(false);
     Menu3.SetActive(true);
     Menu4.SetActive(false);
     MenuSettings.SetActive(false);
     Menu1.SetActive(false);
     Menu5.SetActive(false);
 }
Exemple #2
0
    // game choice (solo or vs)
    public void PlayvsCom()
    {
        Menu1.SetActive(false);
        Menu2.SetActive(false);
        Menu3.SetActive(false);
        Menu4.SetActive(false);
        Menu5.SetActive(false);
        MenuSettings.SetActive(false);

        Menu4IA.SetActive(true);
        Menu5IA.SetActive(false);
    }
Exemple #3
0
 // confirm player
 public void clickConfirm()
 {
     if (Menu4.activeInHierarchy)
     {
         if (confirmButton.activeInHierarchy)
         {
             if (Input.GetKeyDown(KeyCode.Return) || Input.GetButtonDown("Start"))
             {
                 Menu1.SetActive(false);
                 Menu2.SetActive(false);
                 Menu3.SetActive(false);
                 Menu4.SetActive(false);
                 Menu5.SetActive(true);
                 MenuSettings.SetActive(false);
             }
         }
     }
 }
Exemple #4
0
    //Volver al menu
    public void VolverMenu(int menuProcedencia)
    {
        switch (menuProcedencia)
        {
        //Execution Config Menu
        case 0:
            MenuConfiguracionEjecucion.SetActive(false);
            break;

        //Setting Menu
        case 1:
            MenuSettings.SetActive(false);
            break;

        //About menu
        case 2:
            MenuAbout.SetActive(false);
            break;
        }
        MainMenu.SetActive(true);
    }
Exemple #5
0
    void Update()
    {
        GotItPress();
        GoToMenu3();
        CancelPlayer1();
        CancelPlayer2();
        Confirm();
        clickConfirm();
        cancelArena();
        confirmArena();

        if (dataHolder.FromMenuButton)
        {
            Menu4.SetActive(false);
            Menu1.SetActive(false);
            Menu2.SetActive(false);
            Menu3.SetActive(true);
            MenuSettings.SetActive(false);
            dataHolder.FromMenuButton = false;
        }
    }
Exemple #6
0
 public void MenuSettigsCheck()
 {
     MenuSettings.SetActive(!MenuSettings.activeSelf);
 }
Exemple #7
0
 //On Click Button Setting
 public void OnClickSettings()
 {
     MainMenu.SetActive(false);
     MenuSettings.SetActive(true);
 }