Skip to content

Instantly share code, notes, and snippets.

@alexson
Created January 13, 2022 09:12
Show Gist options
  • Save alexson/5d921e39cc47298eb62a6b22fa26f9ab to your computer and use it in GitHub Desktop.
Save alexson/5d921e39cc47298eb62a6b22fa26f9ab 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