Skip to content

Instantly share code, notes, and snippets.

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