private IEnumerator UpdateScore() { while (true) { var list = new List <Photon.Realtime.Player>(PhotonNetwork.PlayerList); list.Sort((player1, player2) => ScoreExtensions.GetScore(player2).CompareTo(ScoreExtensions.GetScore(player1))); HudView?.UpdateBoard(list); yield return(new WaitForSeconds(0.5f)); } }