public bool Load(gameSave saveName) { _current = SerializationManager.getSaveDataFromSaveFile(saveName.ToString()); Debug.Log("saveData was loaded"); return(true); }
public void gameSaveButtonPress(bool isSave, gameSave saveName) { if (isSave) { Save(saveName); } else { Load(saveName); } }
public bool Save(gameSave saveName) { Debug.Log("saveData was saved"); SerializationManager.serializeEntireGameToFile(saveName.ToString(), this); return(true); }
Items.Add(CreateStashItem(gameSave, _offset + indices[^ 1], DataLength - indices[^ 1], Array.Empty <Gem>()));