private void RefreshCurrentObjective() { if (objectives.Count > 0) { int previousObjectiveIndex = objectives.IndexOf(currentObjective); currentObjective = objectives[objectiveIndex]; currentObjectiveDescription = currentObjective.Description; if (previousObjectiveIndex != objectives.IndexOf(currentObjective)) { currentObjective.OnActivate(); currentObjectiveDescription = currentObjective.Description; } currentObjective.Update(StatsManager.PlayTime); if (missionHelper.AllObjectivesCompleted()) { MissionManager.MarkMissionAsCompleted(this.MissionID); } } }