public void LoadMissions() { Clear(); totalDistance = 0; allNames = new List <string>(); if (mission != null) { MissionData missionData = missions.GetMissionsDataByJsonName(mission.name); foreach (MissionData.AreaSetData data in missionData.areaSetData) { LoadMissionData(data); } } else { foreach (MissionData.AreaSetData data in missionsManager.videogames[videoGameID - 1].missions[missionID].data[0].areaSetData) { LoadMissionData(data); } } }