Highroad Engine v1.3
|
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...
Public Member Functions | |
virtual IEnumerator | DisplayAchievement (MMAchievement achievement) |
Instantiates an achievement display prefab and shows it for the specified duration More... | |
virtual void | OnMMEvent (MMAchievementUnlockedEvent achievementUnlockedEvent) |
When an achievement is unlocked, we display it More... | |
Public Member Functions inherited from MoreMountains.Tools.MMEventListener< MMAchievementUnlockedEvent > | |
void | OnMMEvent (T eventType) |
Public Attributes | |
MMAchievementDisplayItem | AchievementDisplayPrefab |
the prefab to use to display achievements More... | |
float | AchievementDisplayDuration = 5f |
the duration the achievement will remain on screen for when unlocked More... | |
float | AchievementFadeDuration = 0.2f |
the fade in/out speed More... | |
Protected Member Functions | |
virtual void | OnEnable () |
On enable, we start listening for unlocked achievements More... | |
virtual void | OnDisable () |
On disable, we stop listening for unlocked achievements More... | |
Protected Attributes | |
WaitForSeconds | _achievementFadeOutWFS |
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.
|
virtual |
Instantiates an achievement display prefab and shows it for the specified duration
achievement | Achievement. |
|
protectedvirtual |
On disable, we stop listening for unlocked achievements
|
protectedvirtual |
On enable, we start listening for unlocked achievements
|
virtual |
When an achievement is unlocked, we display it
achievementUnlockedEvent | Achievement unlocked event. |
|
protected |
float MoreMountains.Tools.MMAchievementDisplayer.AchievementDisplayDuration = 5f |
the duration the achievement will remain on screen for when unlocked
MMAchievementDisplayItem MoreMountains.Tools.MMAchievementDisplayer.AchievementDisplayPrefab |
the prefab to use to display achievements
float MoreMountains.Tools.MMAchievementDisplayer.AchievementFadeDuration = 0.2f |
the fade in/out speed