Exemple #1
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.S))
     {
         BSave.Save(saveData, path, extension, key, absolutePath, split, format);
     }
     if (Input.GetKeyDown(KeyCode.L))
     {
         bool splitted = (split != 1);
         saveData = BSave.Load <SaveData>(path, extension, key, absolutePath, splitted, format);
     }
 }
Exemple #2
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.S))
     {
         BSave.Save(text, path, extension, key, absolutePath, split);
     }
     if (Input.GetKeyDown(KeyCode.L))
     {
         bool splitted = (split != 1);
         text = BSave.Load(path, extension, key, absolutePath, splitted);
     }
 }