-
-
Save alexson/0e91366bc2c791c13285c9f9c2d67478 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
public void UpdateScoreUI() | |
{ | |
//Put my score into the list | |
foreach (IPeer peer in _SyncStateTrackingList._peerTrackerDict.Keys) | |
{ | |
//is self | |
if (_ARNetworkingManager.ARNetworking.Networking.Self == peer) | |
{ | |
ScoreUI self_scoreUI = _SyncStateTrackingList._peerTrackerDict[peer].GetComponentInChildren<ScoreUI>(); | |
self_scoreUI.scoreText.text = score.ToString(); | |
} | |
} | |
//Find other peers score to put score UI | |
foreach (IPeer peer in _peerScoreList.Keys) | |
{ | |
ScoreUI scoreUI = _SyncStateTrackingList._peerTrackerDict[peer].GetComponentInChildren<ScoreUI>(); | |
scoreUI.scoreText.text = _peerScoreList[peer].ToString(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment