void OnEnable() { GameObject managerObject = GameObject.Find("IOManager"); m_ioManager = managerObject.GetComponent<IOManager>(); Levels = m_ioManager.GetLevelsInDirectory(Application.dataPath + "/Levels/"); LoadedLevel = null; }