//将移动或雇佣的员工放入特定办公室 + 确定部门领导者 + CEO技能发动 public void SelectDep(OfficeControl office) { if (office.CurrentManager != null && SelectMode < 3) { office.CurrentManager.InfoDetail.TempDestroyStrategy(); office.CurrentManager.CurrentOffice = null; office.CurrentManager.InfoDetail.Entity.FindWorkPos(); } if (SelectMode == 1) { //还需要重新计算工资 Salary += CurrentEmpInfo.CalcSalary(); office.CurrentManager = CurrentEmpInfo.emp; CurrentEmpInfo.emp.CurrentOffice = office; SetInfoPanel(); CurrentEmpInfo.emp.InfoA.transform.parent = StandbyContent; office.SetOfficeStatus(); } else if (SelectMode == 2) { if (CurrentEmpInfo == CurrentEmpInfo.emp.InfoB) { CurrentEmpInfo = CurrentEmpInfo.emp.InfoA; } CurrentEmpInfo.transform.parent = StandbyContent; ResetOldAssignment(); CurrentEmpInfo.emp.CurrentOffice = office; office.CurrentManager = CurrentEmpInfo.emp; office.SetOfficeStatus(); CurrentEmpInfo.DetailInfo.Entity.FindWorkPos(); } //确定部门领导者 else if (SelectMode == 3) { if (CurrentDep.CommandingOffice != null) { CurrentDep.CommandingOffice.ControledDeps.Remove(CurrentDep); CurrentDep.CommandingOffice.CheckManage(); } CurrentDep.CommandingOffice = office; CurrentDep.Text_Office.text = "由 " + office.Text_OfficeName.text + " 管理"; office.ControledDeps.Add(CurrentDep); office.CheckManage(); } //CEO技能 else if (SelectMode == 6) { if (CEOSkillNum == 3) { office.Progress = 100; office.ActiveButton.interactable = true; office.Text_Progress.text = "激活进度:" + office.Progress + "%"; } CEOSkillConfirm(); } DepSelectPanel.SetActive(false); }