public MapLoader(MapLinker linker) { if (linker == null) { Debug.LogError("The linker provided is null"); } this.linker = linker; }
public void loadFile(MapLinker linker, FileInfo file) { MapLoader mapLoader = new MapLoader(linker); GameObject mapLoaded = mapLoader.loadFromFile(file); if (loadToPrefab) { makeGameObjectAsPrefab(mapLoaded, mapLoaded.name); } }
void loadNewLinker() { MapLinker loadedLinker = (MapLinker)AssetDatabase.LoadAssetAtPath("Assets" + linkerPath, typeof(MapLinker)); if (loadedLinker != null) { linker = loadedLinker; } else { Debug.LogError("Selected file not a Linker!"); } }
void createNewLinker() { MapLinker newLinker = (MapLinker)ScriptableObject.CreateInstance("MapLinker"); AssetDatabase.CreateAsset(newLinker, "Assets/linker.asset"); }
public TilesetLoader(MapLinker linker) { this.linker = linker; }