Skip to content

Instantly share code, notes, and snippets.

@alexson
Created January 13, 2022 09:16
Show Gist options
  • Save alexson/fe21147c30ccdde62d69c9dc617b664a to your computer and use it in GitHub Desktop.
Save alexson/fe21147c30ccdde62d69c9dc617b664a to your computer and use it in GitHub Desktop.
public void AddScore()
{
score += scorePerExplosion;
Debug.Log("Score now: " + score);
messagingManager.BroadcastString((uint)MessageType.PlayerScore, score.ToString(), TransportType.ReliableUnordered);
UpdateScoreUI();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment