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

        cameraOutput.SetSocket(socket);
    }
Exemple #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;
     }
 }
Exemple #4
0
 public void SetSocket(CarSocket socket)
 {
     if (this.socket != null)
     {
         return;
     }
     this.socket = socket;
 }
Exemple #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);
     }
 }
Exemple #6
0
 private void OnDestroy()
 {
     if (this.socket != null)
     {
         this.socket = null;
     }
     if (hasRequest)
     {
         request.WaitForCompletion();
     }
     outputArray.Dispose();
 }
Exemple #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;
     }
 }
Exemple #8
0
 public CarSocket socket; // <- non serializable object, not included in JSON
 public CarConnected(CarInfo car, CarSocket socket) : base(car)
 {
     this.socket = socket;
 }