public void LoadButtonClicked() { PlayerAchivedDataModel data = GetStoredData(); data.collectedCoinNumber = GetInputValue(); SaveDataHandler.SaveData(data, GetFilePath()); ShowStoredData(); }
public void ChangeGameAudioStatus() { GameAudioSavedData data = GetSavedSoundSettingData(); data.isGameAudioOn = !data.isGameAudioOn; SaveDataHandler.SaveData(data, GetFilePath()); if (onAudioStateChange != null) { onAudioStateChange(data.isGameAudioOn); } }
private void SaveHighscore() { SaveDataHandler.SaveData(this.HighScore.ToString(), Settings.CurrentSaveFilePath); }
public static void Save() { string data_string = StatTracker.FoodEaten.ToString(); SaveDataHandler.SaveData(data_string, Settings.StatTrackerSavePath); }