Beispiel #1
0
        public SaveLoadObject Load()
        {
            SaveLoadObject data = module.Load();

            statusDispathcer(module.Status);
            return(data);
        }
Beispiel #2
0
        public void Save(SaveLoadObject dataObject)
        {
            //Check if folder exists
            if (!Directory.Exists(FOLDER_NAME))
            {
                Directory.CreateDirectory(FOLDER_NAME);
            }
            string json = JsonUtility.ToJson(dataObject);

            File.WriteAllText(path, json);
            status = SaveLoadStatus.saved;
        }
Beispiel #3
0
 public void Save(SaveLoadObject dataObject)
 {
     module.Save(dataObject);
     statusDispathcer(module.Status);
 }
Beispiel #4
0
 public void Save(SaveLoadObject dataObject)
 {
     //Implement remote API call
     status = SaveLoadStatus.loaded;
 }