Exemplo n.º 1
0
        public void OpenCameraInstance(MuMechModuleHullCamera camera)
        {
            if (GuiEnabled && _gameUiToggle)
            {
                if (!Core.TrackedCameras.ContainsKey(camera.GetInstanceID()))
                {
                    var newCamera = new TrackingCamera(camera.GetInstanceID(), camera);

                    StartCoroutine(newCamera.SendCameraImage());

                    Core.TrackedCameras.Add(camera.GetInstanceID(), newCamera);
                }
            }
        }
Exemplo n.º 2
0
 private bool CameraHasToBeDeleted(TrackingCamera trackingCamera)
 {
     return(!trackingCamera.Enabled || trackingCamera.Vessel == null || !trackingCamera.Vessel.loaded);
 }