コード例 #1
0
 protected override bool SendBytes(byte[] bytes, int channelId = Channels.DefaultReliable)
 {
     if (bytes.Length == 0)
     {
         Debug.LogError("LocalConnection:SendBytes cannot send zero bytes");
         return(false);
     }
     return(NetworkServer.InvokeBytes(this, bytes));
 }
コード例 #2
0
 protected override bool SendBytes(byte[] bytes)
 {
     if (bytes.Length == 0)
     {
         if (LogFilter.logError)
         {
             Debug.LogError("LocalConnection:SendBytes cannot send zero bytes");
         }
         return(false);
     }
     return(NetworkServer.InvokeBytes(this, bytes));
 }