private void InteractionAchievement()
    {
        AchievementManager achManager = Director.GetManager <AchievementManager>();

        achManager.AddCount(interactionAchievement);
        achManager.AddCount(achManager.interactionAchievement);
    }
Ejemplo n.º 2
0
    void ItemPickedUp()
    {
        AchievementManager achManager = Director.GetManager <AchievementManager>();

        if (achManager.GetCount(Data.creationAchievement) <= 0)
        {
            achManager.AddCount(Data.creationAchievement);
        }
        achManager.AddCount(achManager.pickupAchievement);
        Director.GetManager <SoundManager>().PlaySound(pickupSound);
    }