Ejemplo n.º 1
0
 public static void unlockAchievementEvent(AchievementKeysList.AchievementList achievement)
 {
     if (achievementUnlocked != null)
     {
         achievementUnlocked(achievement);
     }
 }
Ejemplo n.º 2
0
    private void unlockAchievement(AchievementKeysList.AchievementList name)
    {
        AchievementData unlockedAchievementData;

        achievementListDictionary.TryGetValue(name, out unlockedAchievementData);
        if (unlockedAchievementData != null)
        {
            achievementCanvasName.text        = unlockedAchievementData.name;
            achievementCanvasDescription.text = unlockedAchievementData.description;
            achievementCanvasSprite.sprite    = unlockedAchievementData.image;
            unlockedAchievementData.unlocked  = true;
        }
        else
        {
            Debugger.printLog("Error at unlocking achievement...");
        }
    }