|
|
@ -1,4 +1,4 @@
|
|
|
|
//Shady
|
|
|
|
|
|
|
|
using System.IO;
|
|
|
|
using System.IO;
|
|
|
|
using System.Text;
|
|
|
|
using System.Text;
|
|
|
|
using UnityEngine;
|
|
|
|
using UnityEngine;
|
|
|
@ -203,7 +203,7 @@ public sealed class SaveSystem
|
|
|
|
// EDITOR METHODS
|
|
|
|
// EDITOR METHODS
|
|
|
|
//===================================================
|
|
|
|
//===================================================
|
|
|
|
//For Opening SaveData file => Shortcut key (Ctrl or Cmd) + Shift + j
|
|
|
|
//For Opening SaveData file => Shortcut key (Ctrl or Cmd) + Shift + j
|
|
|
|
[UnityEditor.MenuItem("Shady/Save System/Open Save File %#j")]
|
|
|
|
[UnityEditor.MenuItem("Save System/Save System/Open Save File %#j")]
|
|
|
|
private static void OpenSaveFile()
|
|
|
|
private static void OpenSaveFile()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(File.Exists(GetSavePath))
|
|
|
|
if(File.Exists(GetSavePath))
|
|
|
@ -213,7 +213,7 @@ public sealed class SaveSystem
|
|
|
|
}//OpenSaveFile() end
|
|
|
|
}//OpenSaveFile() end
|
|
|
|
|
|
|
|
|
|
|
|
//For Reseting Save Data File => Shortcut key (Ctrl or Cmd) + Shift + r
|
|
|
|
//For Reseting Save Data File => Shortcut key (Ctrl or Cmd) + Shift + r
|
|
|
|
[UnityEditor.MenuItem("Shady/Save System/Reset Save Data %#r")]
|
|
|
|
[UnityEditor.MenuItem("Save System/Save System/Reset Save Data %#r")]
|
|
|
|
private static void ResetSaveData()
|
|
|
|
private static void ResetSaveData()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(UnityEditor.EditorUtility.DisplayDialog("Save Data", "Do you want to Reset all Save Data ?", "Yes", "No"))
|
|
|
|
if(UnityEditor.EditorUtility.DisplayDialog("Save Data", "Do you want to Reset all Save Data ?", "Yes", "No"))
|
|
|
|