Пример #1
0
        public static ContentLoader AddRef()
        {
            if (m_singletonInstance == null)
            {
                m_singletonInstance = new ContentLoader();
            }

            m_refCnt++;

            return m_singletonInstance;
        }
Пример #2
0
        public void Release(bool disposing)
        {
            if (m_refCnt == 1)
            {
                if (disposing)
                {
                    m_singletonInstance = null;
                }
            }

            m_refCnt--;
        }