internal void UpdateOpponentDeadForTurns(List <int> turns) { var index = _game.BattlegroundsHeroCount() - 1; foreach (var text in _leaderboardDeadForText) { text.Text = ""; } foreach (var text in _leaderboardDeadForTurnText) { text.Text = ""; } foreach (var turn in turns) { if (index < _leaderboardDeadForText.Count && index < _leaderboardDeadForTurnText.Count && index >= 0) { _leaderboardDeadForText[index].Text = $"{turn}"; _leaderboardDeadForTurnText[index].Text = turn == 1 ? LocUtil.Get("Overlay_Battlegrounds_Dead_For_Turn") : LocUtil.Get("Overlay_Battlegrounds_Dead_For_Turns"); } index--; } }