using System.Collections.Generic; namespace GFGGame { public partial class {CfgArrayName} : SingletonBase<{CfgArrayName}> { private Dictionary<{keyType}, {CfgName}[]> _cfgsDic = new Dictionary<{keyType}, {CfgName}[]>(); public {CfgName}[] GetCfgs({keyType} {keyName}) { return ConfigUtil.GetCfgs<{keyType}, {CfgName}>("{CfgArrayName}", "{keyName}", {keyName}, _cfgsDic); } #if UNITY_EDITOR private {CfgName}[] _allDatas; public {CfgName}[] dataArray { get { if (_allDatas == null) { _allDatas = ConfigUtil.GetAllCfgs<{CfgName}>("{CfgArrayName}"); } return _allDatas; } } #endif } }