public void infoPanel(Canvas Info_canvas) { if (infoOpen == false) { infoOpen = true; UnityEngine.UI.Image Imagen = GameObject.Find("Imagen").GetComponent <UnityEngine.UI.Image> (); Imagen.sprite = sesion.getAyudante(); Info_canvas.enabled = true; sesion.setAccesoAyuda(); AudioSource sonido = GameObject.Find("Sonido").GetComponent <AudioSource> (); switch (sesion.getAyudante().name) { case "biologo_avatar": sonido.clip = Resources.Load("Musica/Audios/Hombre/Ac3") as AudioClip; break; case "deportista_avatar": sonido.clip = Resources.Load("Musica/Audios/Mujer/Ac3") as AudioClip; break; case "medico_avatar": sonido.clip = Resources.Load("Musica/Audios/Mujer/Ac3") as AudioClip; break; case "meteorologo_avatar": sonido.clip = Resources.Load("Musica/Audios/Hombre/Ac3") as AudioClip; break; default: sonido.clip = Resources.Load("Musica/Audios/Hombre/Ac3") as AudioClip; break; } sonido.Play(); } else if (infoOpen == true) { infoOpen = false; Info_canvas.enabled = false; } }