Exemplo n.º 1
0
 public void OnQueryStatusReceivedCallback(long requestId, PeerOnlineStatus peersStatus, int peerCount, int errorCode)
 {
     if (OnQueryStatusReceived != null)
     {
         OnQueryStatusReceived(requestId, peersStatus, peerCount, errorCode);
     }
 }
Exemplo n.º 2
0
 void QueryUserStatusHandler(long requestId, PeerOnlineStatus pos, int count, int errorCode)
 {
     if (errorCode == 0)
     {
         //Debug.Log(pos.onlineState == 0);
         OnQueryStatusReceivedCallback(requestId, pos, count, errorCode);
     }
     else
     {
         //Debug.LogError("Error sending message: " + errorCode);
     }
 }
Exemplo n.º 3
0
 void QueryUserStatusHandler(long requestId, PeerOnlineStatus pos, int count, int errorCode)
 {
     if (errorCode == 0)
     {
         Debug.Log(pos.onlineState == 0);
         UnityMainThreadDispatcher.Instance().Enqueue(() =>
         {
             OnQueryStatusReceivedCallback(requestId, pos, count, errorCode);
         });
     }
     else
     {
         Debug.LogError("Error sending message: " + errorCode);
     }
 }