public void OnClick(string name) { if (name == "MusicOn") { sounds.MuteMusic("Intro Theme"); MusicOff.SetActive(true); musicOn.SetActive(false); } else if (name == "MusicOff") { sounds.UnMuteMusic("Intro Theme"); musicOn.SetActive(true); MusicOff.SetActive(false); } else if (name == "SoundOn") { sounds.MuteMusic("258269__jcallison__mouth-pop"); sounds.MuteMusic("ClickSound"); SoundOn.SetActive(false); SoundOff.SetActive(true); } else if (name == "SoundOff") { sounds.UnMuteMusic("258269__jcallison__mouth-pop"); sounds.UnMuteMusic("ClickSound"); SoundOn.SetActive(true); SoundOff.SetActive(false); } else if (name == "Play") { FindObjectOfType <FadeInOut>().FadeIn(); Invoke("LoadPiano", 1f); } else if (name == "Sounds") { MusicScreen.SetActive(true); Next.SetActive(false); Prev.SetActive(false); } else if (name == "SoundsOff") { MusicScreen.SetActive(false); Next.SetActive(true); Prev.SetActive(true); } else if (name == "AboutOn") { AboutUs.SetActive(true); Next.SetActive(false); Prev.SetActive(false); } else if (name == "AboutOff") { AboutUs.SetActive(false); Next.SetActive(true); Prev.SetActive(true); } else if (name == "HappyBirthday") { mode = "HappyBirthday"; FindObjectOfType <FadeInOut>().FadeIn(); Invoke("LoadHappy", 1f); } else if (name == "JingleBells") { mode = "JingleBells"; FindObjectOfType <FadeInOut>().FadeIn(); Invoke("LoadJingles", 1f); } else if (name == "OldMan") { mode = "OldMan"; FindObjectOfType <FadeInOut>().FadeIn(); Invoke("LoadOld", 1f); } }