示例#1
0
    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);
    }
示例#2
0
        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);
        }