private void OnDestroy() { if (this.socket != null) { this.socket = null; } }
public void SetSocket(CarSocketBase socket) { this.socket = socket; var cameraOutput = GetComponentInChildren <CameraOutputController>(); cameraOutput.SetSocket(socket); }
public void SetSocket(CarSocketBase socket) { if (this.socket != null) { return; } this.socket = socket; }
public CarSocketBase socket; // <- non serializable object, not included in JSON public CarConnected(CarInfo car, CarSocketBase socket) : base(car) { this.socket = socket; }