protected void InvokeBundle(OSCBundle bundle) { if (bundle == null) { return; } foreach (var packet in bundle.Packets) { InvokePacket(packet); } }
protected virtual void Update() { if (_packetPool.Count > 0) { var bundle = new OSCBundle(); foreach (var packet in _packetPool) { bundle.AddPacket(packet); } Send(bundle); _packetPool.Clear(); } }