/* * loadPatient() starts the loading of a patient. The event Event.PATIENT_Loaded calls this methode and the loading will be finished */ private static void loadPatientFinish(object obj = null) { // Start parsing the DICOM directory: //PatientDICOMLoader mPatientDICOMLoader = GameObject.Find("GlobalScript").GetComponent<PatientDICOMLoader>(); //mPatientDICOMLoader.loadDirectory(entry.dicomPath); DICOMLoader.instance.setDirectory(entry.dicomPath); // Load model in the directory: MeshLoader mModelLoader = GameObject.Find("GlobalScript").GetComponent <MeshLoader>(); mModelLoader.LoadFile(entry.meshPath); loadingLock = false; }