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