Skip to content

Instantly share code, notes, and snippets.

@alexson
Last active January 13, 2022 09:34
Show Gist options
  • Save alexson/a6a08e9bcf3c63e71fd3f2ce8028516b to your computer and use it in GitHub Desktop.
Save alexson/a6a08e9bcf3c63e71fd3f2ce8028516b to your computer and use it in GitHub Desktop.
//OnDidReceiveDataFromPeer()
var data = args.CopyData();
IPeer _peer = args.Peer;
MessageType _tag = (MessageType)args.Tag;
string _receivedString = DeserializeString(data);
//Debug.Log("OnDidReceiveDataFromPeer");
//Debug.Log("Received message with tag: " + _tag + " from " + _peer.Identifier + " and msg is : " + DeserializeString(data));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment