private void _HideUI(Command cmd) { BaseUI ui = null; _dicUI.TryGetValue(cmd.UIType, out ui); if (ui != null) { ui.Hide(); } }
static int Hide(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); MyFrameWork.BaseUI obj = (MyFrameWork.BaseUI)ToLua.CheckObject(L, 1, typeof(MyFrameWork.BaseUI)); obj.Hide(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }