using UnityEngine; using System.Collections; using System; namespace MoreMountains.Tools { [Serializable] /// /// A serializable class used to store an achievement into a save file /// public class SerializedMMAchievement { public string AchievementID; public bool UnlockedStatus; public int ProgressCurrent; /// /// Initializes a new instance of the class. /// /// Achievement I. /// If set to true unlocked status. /// Progress current. public SerializedMMAchievement(string achievementID, bool unlockedStatus, int progressCurrent) { AchievementID = achievementID; UnlockedStatus = unlockedStatus; ProgressCurrent = progressCurrent; } } [Serializable] /// /// Serializable MM achievement manager. /// public class SerializedMMAchievementManager { public SerializedMMAchievement[] Achievements; } }