示例#1
0
 private void CreateImportButton()
 {
     GUILayout.Label("Import", EditorStyles.boldLabel);
     GUILayout.Label("Import Levels.xml into the scene");
     if (GUILayout.Button("Import Levels.xml"))
     {
         deserializedLevelsLoader.GenerateItems();
     }
 }
    void Start()
    {
        GlobalPrefabs.LoadAll("Characters");
        GlobalPrefabs.LoadAll("Environment");
        GlobalPrefabs.LoadAll("Game Dynamics");

        DeserializedLevelsLoader deserializedLevelsLoader = new DeserializedLevelsLoader();

        deserializedLevelsLoader.GenerateItems();

        DontDestroyOnLoad(this);
    }