private void btnStart_Click(object sender, EventArgs e) { var game = new VictoryGame(); VictoryResult r = game.PlayGame2(); string s = string.Format("You needed {0} rounds to win the game", r.TotalRounds); s += string.Format("\nTotal cost for this victory was " + r.TotalCost.ToString("C0", CultureInfo.CurrentUICulture)); s += string.Format("\nYou won {0} prizes", r.TotalPrize); label2.Text = s; }
public void SetupVictory(VictoryResult victoryResult) { if (victoryResult == VictoryResult.HumanWinner) { _displayText.SetText($"[center]Human Wins[/center]"); _displayText.Display("victory"); } else if (victoryResult == VictoryResult.ZombieWinner) { _displayText.SetText($"[center]Zombies Wins[/center]"); _displayText.Display("victory"); } }