public void addScientistsForTransfer(EmployeeTransfer et, List <string> scientists) { if (et.getScientists() != scientists.Count) { Debug.Log("Something went wrong"); } foreach (string s in scientists) { this.addHiredScientist(s); occupiedLivingSpace++; } }
public List <string> removeScientistsForTransfer(EmployeeTransfer et) { List <string> removedScientists = new List <string>(); for (int i = 0; i < et.getScientists(); i++) { string scientist = hiredScientists.Last.Value; hiredScientists.Remove(scientist); removedScientists.Add(scientist); occupiedLivingSpace--; } return(removedScientists); }
public List<string> removeScientistsForTransfer(EmployeeTransfer et) { List<string> removedScientists = new List<string>(); for (int i = 0; i < et.getScientists(); i++) { string scientist = hiredScientists.Last.Value; hiredScientists.Remove(scientist); removedScientists.Add(scientist); occupiedLivingSpace--; } return removedScientists; }
public void addScientistsForTransfer(EmployeeTransfer et, List<string> scientists) { if (et.getScientists() != scientists.Count) Debug.Log("Something went wrong"); foreach (string s in scientists) { this.addHiredScientist(s); occupiedLivingSpace++; } }