Beispiel #1
0
 protected override void Dispose(bool managed)
 {
     if (!m_Disposed)
     {
         if (managed)
         {
             m_CollisionBoxRenderer.Dispose();
         }
     }
     base.Dispose(managed);
 }
Beispiel #2
0
 protected virtual void Dispose(bool managed)
 {
     if (!m_Disposed)
     {
         if (managed)
         {
             m_Renderer2D.Dispose();
             m_EntityContext.DestroyAllEntities();
         }
         m_Disposed = true;
     }
 }