public bool ClientSend(byte dataChannel, DeliveryMethod deliveryMethod, NetDataWriter writer)
        {
#if UNITY_WEBGL
            return(wsClient.ClientSend(dataChannel, deliveryMethod, writer));
#else
            if (IsClientStarted)
            {
                Client.FirstPeer.Send(writer, dataChannel, deliveryMethod);
                return(true);
            }
            return(false);
#endif
        }
Beispiel #2
0
 public bool ClientSend(byte dataChannel, DeliveryMethod deliveryMethod, NetDataWriter writer)
 {
     return(wsClient.ClientSend(dataChannel, deliveryMethod, writer));
 }