Example #1
0
 private void OnDestroy()
 {
     if (this.socket != null)
     {
         this.socket = null;
     }
 }
Example #2
0
    public void SetSocket(CarSocketBase socket)
    {
        this.socket = socket;
        var cameraOutput = GetComponentInChildren <CameraOutputController>();

        cameraOutput.SetSocket(socket);
    }
Example #3
0
 public void SetSocket(CarSocketBase socket)
 {
     if (this.socket != null)
     {
         return;
     }
     this.socket = socket;
 }
Example #4
0
 public CarSocketBase socket; // <- non serializable object, not included in JSON
 public CarConnected(CarInfo car, CarSocketBase socket) : base(car)
 {
     this.socket = socket;
 }