Пример #1
0
 private void EnterClass(StudentAIController ai)
 {
     ai.periodOccupied = currentDay.currentPeriod;
     ai.isOccupied     = true;
     ai.agent.enabled  = false;
     ai.GetComponent <Renderer>().enabled = false;
 }
Пример #2
0
 public void ExitClass(StudentAIController ai)
 {
     ai.agent.enabled = true;
     ai.GetComponent <Renderer>().enabled = true;
     GoToNextClass(ai);
 }
Пример #3
0
 public void ExitClass(StudentAIController ai)
 {
     ai.isOccupied    = false;
     ai.agent.enabled = true;
     ai.GetComponent <Renderer>().enabled = true;
 }