Beispiel #1
0
        public void addCamera(RasterPropMonitorCamera camera)
        {
            if (camera == null)
            {
                return;
            }

            GameObject container = new GameObject("RasterPropMonitorCameraCapture:" + camera.cameraName, typeof(RasterPropMonitorCameraCapture));
            RasterPropMonitorCameraCapture cameraCapture = (RasterPropMonitorCameraCapture)container.GetComponent(typeof(RasterPropMonitorCameraCapture));

            cameraCapture.rpmCamera = camera;

            string name = cameraCapture.cameraManagerName().ToLower();

            cameras[name] = cameraCapture;
            cameraCapture.renderOffsetFactor = cameras.Count;
            addToVesselCameraMappings(camera.vessel, camera.cameraName);
        }
 protected void removeFromManager()
 {
     CameraCaptureManager.Instance.BroadcastMessage("removeCamera", RasterPropMonitorCameraCapture.buildCameraManagerName(this.cameraName));
 }