public void HandleEvent(UIControl control, int command, float wparam, float lparam) { if (control == musicButtonOff) { musicButtonOn.Set(false); AudioListener.volume = 0; gameState.MusicOn = false; } else if (control == musicButtonOn) { musicButtonOff.Set(false); AudioListener.volume = 100; gameState.MusicOn = true; MapUI.GetInstance().GetAudioPlayer().PlayAudio("Button"); } else if (control == creditsButton) { MapUI.GetInstance().GetAudioPlayer().PlayAudio("Button"); creditsPanel.Show(); } else if (control == returnButton) { MapUI.GetInstance().GetAudioPlayer().PlayAudio("Button"); this.Hide(); ui.GetMapUI().Show(); } else if (control == shareButton) { string htm = GameApp.GetInstance().GetResourceConfig().shareHtm.text; Utils.ToSendMail("", "Call Of Mini: Zombies", htm); } else if (control == reviewButton) { Application.OpenURL("http://www.trinitigame.com/callofminizombies/review/"); } else if (control == supportButton) { Utils.ToSendMail("*****@*****.**", "Call Of Mini: Zombies", ""); } }