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); } }
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); } }