/// <summary> /// Creates a new map, with a starting area created using the same settings as the chunk creation. /// (0,0) is the default source node. /// Note that if changes to the previous map haven't been saved, they will be lost. /// </summary> public void getNewMap() { LevelMap tempMap = new LevelMap(); GameManager.gameplay.map = tempMap; // let gameplay & this have a new map currentMap = tempMap; createTileChunk(false); // create a new tile chunk in the new map LevelEditor_2.setType(tempMap, 0, Node.TileType.source); // set the suorce tile to (0,0) //currentMap = tempMap; //GameManager.instance.gameplay.map = tempMap; GameManager.gameplay.resetLevelAssets(); // reset player location & redraw everything }