// Initial values public static void Init(QuestProgressData[] questProgress, List <int> activeQuests) { aQuestProgress = questProgress; liActiveQuests = activeQuests; for (int i = 0; i < aQuestProgress.Length; i++) { for (int j = 0; j < activeQuests.Count; j++) { if (i == activeQuests[j]) { QuestManager.CalculateQuestProgress(i); continue; } } } }