public void press() { Menu2.SetActive(false); Menu3.SetActive(true); Menu4.SetActive(false); MenuSettings.SetActive(false); Menu1.SetActive(false); Menu5.SetActive(false); }
// 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); }
// 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); } } } }
//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); }
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; } }
public void MenuSettigsCheck() { MenuSettings.SetActive(!MenuSettings.activeSelf); }
//On Click Button Setting public void OnClickSettings() { MainMenu.SetActive(false); MenuSettings.SetActive(true); }