예제 #1
0
        public void DisplayScoreboard()
        {
            scoreBoard.SetActive(true);
            ScoreBoard sb = scoreBoard.GetComponent <ScoreBoard>();

            sb.ClearRecords();
            foreach (var player in _controller.GetPlayers())
            {
                sb.AddRecord("", "Player " + player.Id, player.Hp.ToString());
            }
        }