add pause menu
This commit is contained in:
@@ -41,6 +41,19 @@ public static void Save()
|
||||
File.WriteAllText(SaveFileName(), JsonUtility.ToJson(_saveData, true));
|
||||
}
|
||||
|
||||
public static void ClearSave()
|
||||
{
|
||||
try
|
||||
{
|
||||
File.Delete(SaveFileName());
|
||||
Debug.Log("File deleted successfully. Stop and restart player.");
|
||||
}
|
||||
catch (FileNotFoundException)
|
||||
{
|
||||
// file doesn't exist, don't need to do anything
|
||||
}
|
||||
}
|
||||
|
||||
private static void HandleSaveData()
|
||||
{
|
||||
GameManager.Instance.SaveStoryBools(ref _saveData.StoryboolData);
|
||||
|
||||
Reference in New Issue
Block a user