public void MostrarMenu() { sonidoBoton.Play(); colocarPrevio.QuitarTodosEdificios(); juego.ConstruirOcultarPanelEdificios(); if (panel.gameObject.GetComponent <CanvasGroup>().alpha == 0) { panelSub.volverColor = true; PanelCambiarColor(panelSub); diaNoche.VelocidadMarchas(0); panel.gameObject.GetComponent <CanvasGroup>().alpha = 1; panel.gameObject.GetComponent <CanvasGroup>().interactable = true; panel.gameObject.GetComponent <CanvasGroup>().blocksRaycasts = true; } else { panelSub.volverColor = false; PanelVolverColor(panelSub); diaNoche.VelocidadMarchas(1); panel.gameObject.GetComponent <CanvasGroup>().alpha = 0; panel.gameObject.GetComponent <CanvasGroup>().interactable = false; panel.gameObject.GetComponent <CanvasGroup>().blocksRaycasts = false; } }