Exemplo n.º 1
0
            public void onRawMessageReceived(AndroidJavaObject senderParticipantId, AndroidJavaObject messageData)
            {
                var partcipantId = senderParticipantId.Call <string>("toString");
                var bytes        = AndroidJNI.FromByteArray(messageData.GetRawObject());

                GPGMultiplayerManager.onRealTimeMessageReceived(partcipantId, bytes);
            }
Exemplo n.º 2
0
            // this is currently not used due to it being slower dealing with base64 encode/decode
            public void onMessageReceived(string senderParticipantId, string messageData)
            {
                var bytes = System.Convert.FromBase64String(messageData);

                GPGMultiplayerManager.onRealTimeMessageReceived(senderParticipantId, bytes);
            }