public FindServer() { try { FindServer.receiver = new UDPReceive(this.localPortOverride); FindServer.receiver.OnReceive = UpdateDevices; } catch {} }
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(); }