示例#1
0
文件: UnitConfig.cs 项目: Rynmiles/ET
        public static void AvoidAOT(ConfigComponent configComponent, UnitConfigCategory category)
        {
            configComponent.Get <UnitConfig>(1);
            configComponent.GetCategory <UnitConfigCategory>();
            configComponent.GetAll <UnitConfig>();
            category.GetAll();
            UnitConfig config = category[1];

            config = category.TryGet(1);
            config = category.GetOne();
        }
示例#2
0
 public UnitConfigCategory()
 {
     Instance = this;
 }