private static ChallengeCategoryParam[] GetOpeningCategory() { ChallengeCategoryParam[] array = ((IEnumerable <ChallengeCategoryParam>)MonoSingleton <GameManager> .Instance.MasterParam.ChallengeCategories).OrderByDescending <ChallengeCategoryParam, int>((Func <ChallengeCategoryParam, int>)(cat => cat.prio)).ToArray <ChallengeCategoryParam>(); List <ChallengeCategoryParam> challengeCategoryParamList = new List <ChallengeCategoryParam>(); foreach (ChallengeCategoryParam category in array) { if (ChallengeMission.IsCategoryOpening(category)) { challengeCategoryParamList.Add(category); } } return(challengeCategoryParamList.ToArray()); }