void LoseWar() { int soldiersLost = Random.Range(1, (soldiers + 1) / 2); outcomeText.text = "You decided to fight.\n" + "Alas, the enemy was just too strong. " + "In other words, we got our ass handed to us.\n" + soldiersLost + " of our soldiers died.\n" + "The enemy proceeded to raid our supplies."; workerManager.RemoveSoldier(soldiersLost); workerManager.DecreasePopulation(soldiersLost); resourceManager.RemoveGold(gold / 2); // calculate something better here resourceManager.RemoveEquipment(equipment / 2); // calculate something better here resourceManager.RemoveFood(food / 3); choicePanel.SetActive(false); outcomePanel.SetActive(true); }