/// <summary> /// Broadcast the outgoing buffer to the entire LAN via UDP. /// </summary> public void EndSend(int port) { mBuffer.EndPacket(); #if !UNITY_WEBPLAYER mUdp.Broadcast(mBuffer, port); #endif mBuffer = null; }
/// <summary> /// Broadcast the outgoing buffer to the entire LAN via UDP. /// </summary> public void EndSend(int port) { mBuffer.EndPacket(); #if !UNITY_WEBPLAYER if (mCanSend) { mUdp.Broadcast(mBuffer, port); } #endif mBuffer.Recycle(); mBuffer = null; }