예제 #1
0
        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);
        }
예제 #2
0
        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);
        }