예제 #1
0
 public FindServer()
 {
     try {
         FindServer.receiver           = new UDPReceive(this.localPortOverride);
         FindServer.receiver.OnReceive = UpdateDevices;
     } catch {}
 }
예제 #2
0
 public FindServer()
 {
     try {
         FindServer.receiver                   = new UDPReceive(this.localPortOverride);
         FindServer.receiver.OnReceive         = OnDeviceReceived;
         FindServer.deviceUpdater              = new ThreadInterface();
         FindServer.deviceUpdater.threadAction = UpdateDevices;
     } catch {}
 }
 // Unity Functions.
 void OnEnable()
 {
     this.udpReceiver = new UDPReceive(this.localPortOverride);
     this.udpReceiver.Connect();
 }