public void UnlockAllTrophies(bool enableAll = false) { Trophy.CreateData(); if (enableAll) { CsvCommonIdManager commonIdManager = typeof(Trophy).GetField("commonIdManager", BindingFlags.NonPublic | BindingFlags.Static) ?.GetValue(null) as CsvCommonIdManager; if (commonIdManager != null) { commonIdManager.enabledIdList.Clear(); foreach (KeyValuePair <int, KeyValuePair <string, string> > idKvPair in commonIdManager.idMap.ToArray() ) { commonIdManager.enabledIdList.Add(idKvPair.Key); } } } List <Trophy.Data> data = Trophy.GetAllDatas(false); foreach (Trophy.Data trophyData in data) { GameMain.Instance.CharacterMgr.status.AddHaveTrophy(trophyData.id); } }