private void InteractionAchievement() { AchievementManager achManager = Director.GetManager <AchievementManager>(); achManager.AddCount(interactionAchievement); achManager.AddCount(achManager.interactionAchievement); }
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); }