refactor: update coffee.internal

This commit is contained in:
mob-sakai
2024-12-22 13:09:07 +09:00
parent abdf260352
commit ff179f0271
5 changed files with 100 additions and 13 deletions

View File

@@ -18,10 +18,10 @@ namespace Coffee.UIParticleInternal
public static T[] GetComponentsInChildren<T>(this Component self, int depth)
where T : Component
{
var results = ListPool<T>.Rent();
var results = InternalListPool<T>.Rent();
self.GetComponentsInChildren_Internal(results, depth);
var array = results.ToArray();
ListPool<T>.Return(ref results);
InternalListPool<T>.Return(ref results);
return array;
}