public static void ReturnToPool(IObjectPool obj) { ObjectPool pool = availablePools[obj]; availablePools.Remove(obj); pool.queue.Enqueue(obj); obj.gameObject.SetActive(false); obj.OnDestroy(); }