private void EnterClass(StudentAIController ai) { ai.periodOccupied = currentDay.currentPeriod; ai.isOccupied = true; ai.agent.enabled = false; ai.GetComponent <Renderer>().enabled = false; }
public void ExitClass(StudentAIController ai) { ai.agent.enabled = true; ai.GetComponent <Renderer>().enabled = true; GoToNextClass(ai); }
public void ExitClass(StudentAIController ai) { ai.isOccupied = false; ai.agent.enabled = true; ai.GetComponent <Renderer>().enabled = true; }