private void RenderTitle() { Ruler enemy = Universe.instance.getRuler(enemyInfo.OwnerId); if (rulerInfo.BattleType == BattleType.BATTLE) { int wonScore1 = BattleInfo.GetWonScore(rulerInfo, enemyInfo, enemy); int lostScore1 = BattleInfo.GetLostScore(enemyInfo, _ruler, enemy); int wonScore2 = BattleInfo.GetWonScore(enemyInfo, rulerInfo, _ruler); int lostScore2 = BattleInfo.GetLostScore(rulerInfo, enemy, _ruler); vs.Text = string.Format("<div align='center' id='vs'>{0} (<span class='green'>{1}</span>/<span class='red'>{2}</span>) VS {3} (<span class='green'>{4}</span>/<span class='red'>{5}</span>)</div><p/>", _ruler.Name, wonScore1, lostScore1, enemy.Name, wonScore2, lostScore2); return; } string rulerScore = Universe.GetTournamentPoints(rulerInfo).ToString(); string enemyScore = Universe.GetTournamentPoints(enemyInfo).ToString(); vs.Text = string.Format("<div align='center' id='vs'>{0} ({1}) VS {2} ({3})</div><p/>", _ruler.Name, rulerScore, enemy.Name, enemyScore); }