public override void CloseForm(IUIObject obj) { TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "MAINMENU", "CLOSE", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay)); MenuIconDlg menuIconDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MENUICON_DLG) as MenuIconDlg; if (menuIconDlg != null) { menuIconDlg.ClickCloseMenu(null); } base.CloseForm(null); }
public void ClickButton(IUIObject obj) { Button button = (Button)obj; if (null == button) { return; } MainMenuDlg.TYPE key = (MainMenuDlg.TYPE)((int)button.data); if (this.mapFun.ContainsKey(key)) { this.mapFun[key](null); } if (TsPlatform.IsIPhone) { MenuIconDlg menuIconDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MENUICON_DLG) as MenuIconDlg; if (menuIconDlg != null) { menuIconDlg.ClickCloseMenu(null); } } }