// Incrementa atributos do player com os valores de recursos do staff private void SetResourcesFromStaff(Staff_Data staffChosen) { candidates [0].resources.cash += staffChosen.resources.cash; candidates [0].resources.corruption += staffChosen.resources.corruption; candidates [0].resources.credibility += staffChosen.resources.credibility; candidates [0].resources.visibility += staffChosen.resources.visibility; uiResources.UpdateValues(); }
private void StaffChosen() { for (int i = 0; i < uiCarousel.chosenList.Count; i++) { Staff_Data staffChosen = candidates [0].avaiableStaff [uiCarousel.chosenList [i]]; SetResourcesFromStaff(staffChosen); candidates[0].hiredStaff.Add(staffChosen); } //uiCarousel.chosenList.Clear (); passado pra classe carousel }