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(); }
public override void Dispose() { model.Dispose(); powerElement.Dispose(); wheelsGroupElement.Dispose(); gunGroupElement.Dispose(); hullGroupElement.Dispose(); Physics.RemovePhysObj(physObj); physObj = null; }