Exemple #1
0
        public IRes GetRes(string name)
        {
            IRes res = null;

            res = ResFactory.Create(name);
            return(res);
        }
Exemple #2
0
        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);
        }