示例#1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                GraphicsScreen.CameraNode = null;
                _cameraNode.Dispose(false);
            }

            base.Dispose(disposing);
        }
示例#2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                // Clean up.
                _cameraNodeB.Dispose(false);
            }

            base.Dispose(disposing);
        }
示例#3
0
        // 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);
        }
示例#5
0
        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);
        }