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()); } }