public override void Dispose()
 {
     //Dispose entities
     hullMdlElm.Dispose();
     sphereMdlElm.Dispose();
     powerCellsMdlElm.Dispose();
     //Dispose scene nodes
     hullGroupNode.Dispose();
     wheelGroupNode.Dispose();
     gunsGroupNode.Dispose();
     //Dispose gamenode
     modelNode.Dispose();
 }
Ejemplo n.º 2
0
        public override void Dispose()
        {
            model.Dispose();

            powerElement.Dispose();

            wheelsGroupElement.Dispose();
            gunGroupElement.Dispose();
            hullGroupElement.Dispose();

            Physics.RemovePhysObj(physObj);
            physObj = null;
        }