internal static void Update() { if (enabled) { if (current != null) { //Update the current achievement current.Update(); //Check if the achievement is done if (current.Done) { current = null; } } //Check if the queue contains achievements else if (queue.Count > 0) { current = queue.Dequeue(); } } }