public void UpdateProgressAll(bool awardShop) { for (int i = 0; i < allAchievements.Length; i++) { allAchievements[i].UpdateCurrentValue(); if (!didInit) { // Ignore notifications from previous sessions. allAchievements[i].notifiedThisSession = allAchievements[i].achieved; } else if (allAchievements[i].achieved && !allAchievements[i].notifiedThisSession) { // We did not notify user that they have gotten this achievement yet. unlockedAchvNames.Enqueue(allAchievements[i].displayName); allAchievements[i].notifiedThisSession = true; } } if (awardShop) { shop.AwardAchievementSkins(); } }