Exemplo n.º 1
0
 /// <summary>
 /// 开始收集,无论调用多少次都只开始一次
 /// </summary>
 public static void StartGC()
 {
     if (mSingleton == null)
     {
         GameObject go = new GameObject("Pool_GameObject_GC_Interval");
         mSingleton = go.AddComponent <Pool_GameObj_GC_Interval>();
         //只开启一次
         mSingleton.StartCoroutine(mSingleton._Coro_ClearPool());
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 游戏初始化时调用
 /// </summary>
 public static void Init()
 {
     Pool_GameObj_GC_Interval.StartGC();
 }