Exemple #1
0
    public bool Load(gameSave saveName)
    {
        _current = SerializationManager.getSaveDataFromSaveFile(saveName.ToString());
        Debug.Log("saveData was loaded");

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