Example #1
0
        /// <summary>
        /// Loads the stats from the json file.
        /// </summary>
        public void LoadStats()
        {
            StatsLoader.LoadingStats("Stats", ref Stats);

            if (OnStatsLoaded != null)
            {
                OnStatsLoaded(Stats);
            }
        }
Example #2
0
 /// <summary>
 /// Saves the stats to The json file.
 /// </summary>
 public void SaveStats()
 {
     StatsLoader.SavingStats("Stats", Stats);
 }