private void AttemptBuildingTask(Cell cell, Building building) { if (!_resourceManager.RequestResourceUsage(building.GetTreeCost(), building.GetStoneCost(), building.GetGoldCost())) { return; } cell.SetOccupationStatus(Cell.Occupied.Constructing); _taskManager.AddBuildingTask(new BuildingTask( new Vector3(cell.transform.position.x, 1, cell.transform.position.z), GuiController.GetSelectedBuilding(), cell )); }