protected override void Dispose(bool disposing) { if (disposing) { GraphicsScreen.CameraNode = null; _cameraNode.Dispose(false); } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing) { // Clean up. _cameraNodeB.Dispose(false); } base.Dispose(disposing); }
// OnUnload() is called when the GameObject is removed from the IGameObjectService. protected override void OnUnload() { if (CameraNode.Parent != null) { CameraNode.Parent.Children.Remove(CameraNode); } CameraNode.Dispose(false); CameraNode = null; }
protected override void Dispose(bool disposing) { if (disposing) { // Clean up. GraphicsScreen.CameraNode = null; _topDownCameraNode.Dispose(false); _sceneCameraNode.Dispose(false); } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing) { // Clean up. _cameraNodeB.Dispose(false); GameObjectService.Objects.Clear(); Simulation.RigidBodies.Clear(); Simulation.ForceEffects.Clear(); _graphicsScreen.GraphicsService.Screens.Remove(_graphicsScreen); _graphicsScreen.Dispose(); } base.Dispose(disposing); }