Beispiel #1
0
        public static ContentLoader AddRef()
        {
            if (m_singletonInstance == null)
            {
                m_singletonInstance = new ContentLoader();
            }

            m_refCnt++;

            return m_singletonInstance;
        }
Beispiel #2
0
        public void Release(bool disposing)
        {
            if (m_refCnt == 1)
            {
                if (disposing)
                {
                    m_singletonInstance = null;
                }
            }

            m_refCnt--;
        }