Last active
January 13, 2022 09:33
-
-
Save alexson/ea070c7fdea0d1c6bb5b84578a3e5517 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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