Example #1
0
    private void GameManagerOnGameStateChanged(GameState state)
    {
        if (state == GameState.RunSimulation)
        {
            _studentList = StudentInitialisation.StudentInitialisationInstance.GetStudentList();


            foreach (Transform door in doorsParent.transform)
            {
                _doors.Add(door.gameObject);
            }

            CalcPaths();

            ClockManagement.ClockManagementInstance.StartTime();
            _clockManagement = GameObject.Find("SimulationHandler").GetComponent <ClockManagement>();

            StartCoroutine(Spawn());
        }
    }
 void Awake()
 {
     _clockManagementInstance = this;
 }