/// <summary> /// Save all the data from the map editor to ajson file. /// </summary> /// <param name="t_fileName">The name of the file in which the data will be saved</param> /// <returns>Bool for if the file was save succesfully</returns> public bool SaveLevel(string t_fileName) { LevelSave.SaveLevel(m_map, t_fileName, m_tileSprites, m_mapObjects); return(true); }
public void SaveNewLevel() { ShapeData[] shapes = FindObjectsOfType <ShapeData>(); LevelSave.SaveLevel(shapes); SceneManager.LoadScene("MainMenu"); }