protected static void Clear() { if (mDataList != null) { mDataList.Reset(); mDataList = null; DebugUtils.Log(InfoType.Info, string.Format("Clear {0}", typeof(T).FullName)); } }
protected static void SetData(List <T> allDatas) { if (IsImmediateLoad()) { foreach (T t in allDatas) { t.InitializeNoneKey(); } } mDataList = new GameDataCollection <T>(); mDataList.AddRange(allDatas); LogLoadedEnd("" + mDataList.Count); }