diff --git a/assets/Scripts/Services/ObjectPool.ts b/assets/Scripts/Services/ObjectPool.ts index bb07ae6..896fa85 100644 --- a/assets/Scripts/Services/ObjectPool.ts +++ b/assets/Scripts/Services/ObjectPool.ts @@ -12,7 +12,7 @@ export class ObjectPool { this.componentName = componentName; for (let i = 0; i < defaultPoolCount; i++) { - this.pooledObjects.push(this.createNew()); + this.createNew(); } }