Skip to content

Instantly share code, notes, and snippets.

@alexson
Last active January 13, 2022 09:33
Show Gist options
  • Save alexson/ea070c7fdea0d1c6bb5b84578a3e5517 to your computer and use it in GitHub Desktop.
Save alexson/ea070c7fdea0d1c6bb5b84578a3e5517 to your computer and use it in GitHub Desktop.
case MessageType.PlayerScore:
int receivedScore = int.Parse(_receivedString);
//if no key there, add it first
if (!GameVal.gc._peerScoreList.ContainsKey(_peer))
GameVal.gc._peerScoreList.Add(_peer, receivedScore);
else
GameVal.gc._peerScoreList[_peer] = receivedScore;
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment