// Check for any completed missions while the game is running. If a mission is complete then show it in the gui private IEnumerator InGameCheckForCompletedMissions() { while (true) { yield return(instantNotificationDelay); MissionType completedMission; if ((completedMission = CheckForCompletedMissions(true)) != MissionType.None) { guiManager.ShowInGameMissionCompletePanel(dataManager.GetMissionCompleteText(completedMission)); } } }