Exemplo n.º 1
0
 protected virtual void OnDestroy()
 {
     if (m_scene != null)
     {
         //Debug.LogFormat("OnDestroy");
         m_scene.Clean();
         GameObject.DestroyImmediate(m_scene.gameObject);
         m_scene = null;
     }
 }
Exemplo n.º 2
0
 void ClearScene()
 {
     if (m_scene != null)
     {
         //Debug.LogFormat("OnDestroy");
         m_scene.Clean();
         GameObject.DestroyImmediate(m_scene.gameObject);
         m_scene = null;
     }
 }