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