Esempio n. 1
0
        public void Dispose()
        {
            m_context.Dispose();

            if (m_context.Root != null)
            {
                // Destroy the GameObject that became the basis of Prefab
                GameObject.DestroyImmediate(m_context.Root);
            }
        }
Esempio n. 2
0
 public void OnDestroy()
 {
     ctx.Dispose();
 }