Last active
January 13, 2022 09:32
-
-
Save alexson/89fc8da3492d6be1b3d9c52c2a5efd43 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; | |
GameVal.gc.UpdateScoreUI(); | |
break; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment