public void LoadLevel() { string path = System.IO.Path.Combine(Application.dataPath, "Resources/" + levelToLoad); XMLParser.CreateLevelFromXML(path, Vector3.zero); Instantiate(heroPrefab, Vector3.zero, Quaternion.identity); }