Пример #1
0
 public bool RequestData(byte[] msgData, bool reliable = true)
 {
     if (mNetwork == null || mConnections.Count == 0 || !serverID.IsValid())
     {
         //Debug.Log("No connection. Can't send message.");
         return(false);
     }
     else
     {
         mNetwork.SendData(serverID, msgData, 0, msgData.Length, reliable);
         return(true);
     }
 }