using System.Collections; using System.Collections.Generic; using UnityEngine; public partial class EquipStarConfig : IConfigPostProcess { static Dictionary equipStarConfigs = new Dictionary(); public void OnConfigParseCompleted() { var key = Level * 10000 + EquipPlace * 100 + Star; equipStarConfigs[key] = this; } public static EquipStarConfig Get(int level, int equipPlace, int star) { var key = level * 10000 + equipPlace * 100 + star; if (equipStarConfigs.ContainsKey(key)) { return equipStarConfigs[key]; } else { return null; } } }