예제 #1
0
 public void ShowDepSelectPanel(EmpType type)
 {
     //招募的部门选择
     DepSelectPanel.SetActive(true);
     StandbyButton.SetActive(true);
     for (int i = 0; i < CurrentDeps.Count; i++)
     {
         if (CurrentDeps[i].CheckEmpNum() == false)
         {
             CurrentDeps[i].DS.gameObject.SetActive(false);
         }
         else if (CurrentDeps[i].type != type && CurrentDeps[i].type != EmpType.Science)
         {
             if (CurrentDeps[i].type == EmpType.HR)
             {
                 CurrentDeps[i].DS.gameObject.SetActive(true);
             }
             else
             {
                 CurrentDeps[i].DS.gameObject.SetActive(false);
             }
         }
         else if (CurrentDeps[i].type == EmpType.Science && (type == EmpType.Operate || type == EmpType.Market))
         {
             CurrentDeps[i].DS.gameObject.SetActive(false);
         }
         else
         {
             CurrentDeps[i].DS.gameObject.SetActive(true);
         }
     }
     for (int i = 0; i < CurrentOffices.Count; i++)
     {
         //CEO办公室特例
         if (CurrentOffices[i].DS.gameObject.tag == "HideSelect")
         {
             CurrentOffices[i].DS.gameObject.SetActive(false);
         }
         else
         {
             CurrentOffices[i].DS.gameObject.SetActive(true);
         }
     }
 }
예제 #2
0
 public void ShowDepSelectPanel(List <OfficeControl> offices)
 {
     //显示所有相关办公室
     DepSelectPanel.SetActive(true);
     StandbyButton.SetActive(false);
     for (int i = 0; i < CurrentDeps.Count; i++)
     {
         CurrentDeps[i].DS.gameObject.SetActive(false);
     }
     for (int i = 0; i < CurrentOffices.Count; i++)
     {
         if (offices.Contains(CurrentOffices[i]) == true)
         {
             CurrentOffices[i].DS.gameObject.SetActive(true);
         }
         else
         {
             CurrentOffices[i].DS.gameObject.SetActive(false);
         }
     }
 }
예제 #3
0
 public void ShowDepSelectPanel(DepControl dep)
 {
     //办公室领导选择
     DepSelectPanel.SetActive(true);
     StandbyButton.SetActive(false);
     for (int i = 0; i < CurrentDeps.Count; i++)
     {
         CurrentDeps[i].DS.gameObject.SetActive(false);
     }
     for (int i = 0; i < CurrentOffices.Count; i++)
     {
         if (dep.InRangeOffices.Contains(CurrentOffices[i]))
         {
             CurrentOffices[i].DS.gameObject.SetActive(true);
         }
         else
         {
             CurrentOffices[i].DS.gameObject.SetActive(false);
         }
     }
 }