public void Win() { gameData.KillCount++; gameData.player.GetXP(enemy.XP); gameData.player.Gold += enemy.Gold; gameData.player.itemList.AddRange(enemy.ItemList); var itemListStr = ""; foreach (var i in enemy.ItemList) { itemListStr += i.Name + "\n"; } gameOverScript.Show(string.Format("You Win! \n XP: {0}\nGold:{1}\nLoot:{2}", enemy.XP, enemy.Gold, itemListStr)); }
public void OnGameOver() { IsGameOver = true; gameOverScript.Show(score); }