public void CloseView(string viewName) { IBaseView view = null; if (m_views.TryGetValue(viewName, out view)) { view.Close(); } }
public static void CloseView(string viewName) { IBaseView view = null; if (m_views.TryGetValue(viewName, out view)) { view.Close(); return; } UnityEngine.Debug.Log(viewName); ILuaBaseView luaView = null; if (m_luaViews.TryGetValue(viewName, out luaView)) { luaView.Close(); } }