private void Update() { //queue for achievements. if (_settingsQueue.Count > 0) { if (UIScript.AchievementDone()) { AchievementSettings setting = _settingsQueue.Peek(); UIScript.DisplayAchievementForTime(displayTime, setting.title, setting.description.Replace("#", "" + setting.count)); _settingsQueue.Dequeue(); } } }