using System.Collections; using System.Collections.Generic; using UnityEngine; public partial class EquipControlConfig : IConfigPostProcess { static Dictionary levelAndPlaceToConfigs = new Dictionary(); public void OnConfigParseCompleted() { levelAndPlaceToConfigs[level * 100 + equipType] = this; } public static EquipControlConfig Get(int level, int equipType) { var key = level * 100 + equipType; if (levelAndPlaceToConfigs.ContainsKey(key)) { return levelAndPlaceToConfigs[key]; } else { return null; } } }