public void LoadButtonClicked()
    {
        PlayerAchivedDataModel data = GetStoredData();

        data.collectedCoinNumber = GetInputValue();

        SaveDataHandler.SaveData(data, GetFilePath());

        ShowStoredData();
    }
Example #2
0
    public void ChangeGameAudioStatus()
    {
        GameAudioSavedData data = GetSavedSoundSettingData();

        data.isGameAudioOn = !data.isGameAudioOn;

        SaveDataHandler.SaveData(data, GetFilePath());

        if (onAudioStateChange != null)
        {
            onAudioStateChange(data.isGameAudioOn);
        }
    }
Example #3
0
 private void SaveHighscore()
 {
     SaveDataHandler.SaveData(this.HighScore.ToString(), Settings.CurrentSaveFilePath);
 }
Example #4
0
        public static void Save()
        {
            string data_string = StatTracker.FoodEaten.ToString();

            SaveDataHandler.SaveData(data_string, Settings.StatTrackerSavePath);
        }