public void SetSocket(CarSocket socket)
    {
        this.socket = socket;
        var cameraOutput = GetComponentInChildren <CameraOutputController>();

        cameraOutput.SetSocket(socket);
    }
Example #2
0
 public SyncC(CarSocket socket, RenderTexture renderTexture, FPSLogger logger)
 {
     this.socket        = socket;
     this.renderTexture = renderTexture;
     virtualPhoto       = new Texture2D((int)socket.imageWidth, (int)socket.imageHeight, TextureFormat.RGB24, false);
     this.logger        = logger;
 }
 private void OnDestroy()
 {
     if (this.socket != null)
     {
         this.socket = null;
     }
 }
Example #4
0
 public void SetSocket(CarSocket socket)
 {
     if (this.socket != null)
     {
         return;
     }
     this.socket = socket;
 }
Example #5
0
 public AsyncC(CarSocket socket, RenderTexture renderTexture, FPSLogger logger)
 {
     this.socket        = socket;
     this.logger        = logger;
     this.renderTexture = renderTexture;
     for (int i = 0; i < readers.Length; ++i)
     {
         readers[i] = new GPUReader((int)socket.imageWidth * (int)socket.imageHeight);
     }
 }
Example #6
0
 private void OnDestroy()
 {
     if (this.socket != null)
     {
         this.socket = null;
     }
     if (hasRequest)
     {
         request.WaitForCompletion();
     }
     outputArray.Dispose();
 }
Example #7
0
 public void OnDestroy()
 {
     if (this.socket != null)
     {
         this.socket = null;
     }
     for (int i = 0; i < readers.Length; ++i)
     {
         if (readers[i] != null)
         {
             readers[i].Dispose();
         }
         readers[i] = null;
     }
 }
Example #8
0
 public CarSocket socket; // <- non serializable object, not included in JSON
 public CarConnected(CarInfo car, CarSocket socket) : base(car)
 {
     this.socket = socket;
 }