public IRes GetRes(string name) { IRes res = null; res = ResFactory.Create(name); return(res); }
public IRes GetRes(string name) { IRes res = null; if (m_ResMap.TryGetValue(name, out res)) { return(res); } res = ResFactory.Create(name); if (res != null) { m_ResMap.Add(name, res); m_ResList.Add(res); } return(res); }