Ejemplo n.º 1
0
    public void LoadLevel()
    {
        string path = System.IO.Path.Combine(Application.dataPath, "Resources/" + levelToLoad);

        XMLParser.CreateLevelFromXML(path, Vector3.zero);
        Instantiate(heroPrefab, Vector3.zero, Quaternion.identity);
    }