A class used to display the achievements on screen. The AchievementDisplayItems will be parented to it, so it's better if it has a LayoutGroup (Vertical or Horizontal) too.
More...
|
virtual void | OnEnable () |
| On enable, we start listening for unlocked achievements More...
|
|
virtual void | OnDisable () |
| On disable, we stop listening for unlocked achievements More...
|
|
A class used to display the achievements on screen. The AchievementDisplayItems will be parented to it, so it's better if it has a LayoutGroup (Vertical or Horizontal) too.
◆ DisplayAchievement()
virtual IEnumerator MoreMountains.Tools.MMAchievementDisplayer.DisplayAchievement |
( |
MMAchievement |
achievement | ) |
|
|
virtual |
Instantiates an achievement display prefab and shows it for the specified duration
- Returns
- The achievement.
- Parameters
-
◆ OnDisable()
virtual void MoreMountains.Tools.MMAchievementDisplayer.OnDisable |
( |
| ) |
|
|
protectedvirtual |
On disable, we stop listening for unlocked achievements
◆ OnEnable()
virtual void MoreMountains.Tools.MMAchievementDisplayer.OnEnable |
( |
| ) |
|
|
protectedvirtual |
On enable, we start listening for unlocked achievements
◆ OnMMEvent()
When an achievement is unlocked, we display it
- Parameters
-
achievementUnlockedEvent | Achievement unlocked event. |
◆ _achievementFadeOutWFS
WaitForSeconds MoreMountains.Tools.MMAchievementDisplayer._achievementFadeOutWFS |
|
protected |
◆ AchievementDisplayDuration
float MoreMountains.Tools.MMAchievementDisplayer.AchievementDisplayDuration = 5f |
the duration the achievement will remain on screen for when unlocked
◆ AchievementDisplayPrefab
the prefab to use to display achievements
◆ AchievementFadeDuration
float MoreMountains.Tools.MMAchievementDisplayer.AchievementFadeDuration = 0.2f |
The documentation for this class was generated from the following file:
- F:/Github/Store/TopDownEngine/Assets/TopDownEngine/ThirdParty/MoreMountains/MMTools/Tools/MMAchievements/Scripts/MMAchievementDisplayer.cs