예제 #1
0
        public static void ReturnToPool(IObjectPool obj)
        {
            ObjectPool pool = availablePools[obj];

            availablePools.Remove(obj);
            pool.queue.Enqueue(obj);
            obj.gameObject.SetActive(false);
            obj.OnDestroy();
        }