public void OpenView(string viewName) { IBaseView view = null; if (m_views.TryGetValue(viewName, out view)) { view.Open(); } }
public static void OpenView(string viewName) { IBaseView view = null; if (m_views.TryGetValue(viewName, out view)) { view.Open(); return; } ILuaBaseView luaView = null; if (m_luaViews.TryGetValue(viewName, out luaView)) { luaView.Open(); } }