Main/Config/ConfigBase.cs
@@ -1,12 +1,15 @@ using System.Collections.Generic; using UnityEngine; using Cysharp.Threading.Tasks; using System.IO; using System; public class ConfigBase<U, T> where T : ConfigBase<U, T>, new() { public static Dictionary<U, T> dic = new Dictionary<U, T>(); protected static bool isInit = false; public static bool isInit = false; public static T Get(U id) { @@ -134,7 +137,7 @@ } else { Debug.LogError("GetKey 类型错误"); Debug.LogError("GetKey 意外的key类型 类型错误 " + typeof(U).Name); return default(U); } }