private IEnumerator DisplayAchievement(AchievementScriptable achieved) { badge.sprite = achieved.Badge; title.text = achieved.Title; achieved.Unlocked = true; panelAnim.Play(panelEntryAnimName); yield return(new WaitForSeconds(5)); panelAnim.Play(panelExitAnimName); }
public void Show(AchievementScriptable achievement, bool showDescription = false) { AchievementModel fillInfo = achievement.Data; if (!showDescription) { fillInfo.Description = string.Empty; } achievementIcon = achievement.Icon; Initialize(); AchievementSystem.ShowNotification(this, fillInfo); }