Exemplo n.º 1
0
 private void RefreshReqsLabels()
 {
     int[] costs = TownBuilding.GetUpgradeCost_Forge();
     for (int i = 0; i < costs.Length; i++)
     {
         taskmasterButtonReqsLabels[i].text = costs[i].ToString();
     }
 }
Exemplo n.º 2
0
 public void BuildTaskmasterQuartersButtonInteraction()
 {
     int[] costs = TownBuilding.GetUpgradeCost_Forge();
     if (GameDataManager.Instance.SpendResourcesIfPossible(costs))
     {
         townBuilding.BuildOutbuilding();
     }
     else
     {
         shell.SurrenderFocus();
         insufficientResourcesPopup.Open();
     }
 }