예제 #1
0
 protected static void Clear()
 {
     if (mDataList != null)
     {
         mDataList.Reset();
         mDataList = null;
         DebugUtils.Log(InfoType.Info, string.Format("Clear {0}", typeof(T).FullName));
     }
 }
예제 #2
0
 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);
 }