using UnityEngine; using System.Collections; using System.Collections.Generic; namespace MoreMountains.Tools { /// /// An event type used to broadcast the fact that an achievement has been unlocked /// public struct MMAchievementUnlockedEvent { /// the achievement that has been unlocked public MMAchievement Achievement; /// /// Constructor /// /// New achievement. public MMAchievementUnlockedEvent(MMAchievement newAchievement) { Achievement = newAchievement; } static MMAchievementUnlockedEvent e; public static void Trigger(MMAchievement newAchievement) { e.Achievement = newAchievement; MMEventManager.TriggerEvent(e); } } }