public static void FireManager(GameEntity company, GameEntity worker) { Debug.Log("Fire worker from " + company.company.Name + " " + worker.worker.WorkerRole); // + " " + worker.human.Name Humans.LeaveCompany(worker); var team = company.team; team.Managers.Remove(worker.human.Id); ReplaceTeam(company, team); }
public static void FireManager(GameEntity company, GameEntity worker) { foreach (var team in company.team.Teams) { //team.Managers.Remove(worker.human.Id); //team.Roles.Remove(worker.human.Id); DetachHumanFromTeam(team, worker.human.Id); } Humans.LeaveCompany(worker); }