Skip to content

Instantly share code, notes, and snippets.

@gordeev-dmitry
Created February 18, 2022 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gordeev-dmitry/c253d5eda925f86103b9ae32b9e8e4cf to your computer and use it in GitHub Desktop.
Save gordeev-dmitry/c253d5eda925f86103b9ae32b9e8e4cf to your computer and use it in GitHub Desktop.
Object pool create instance
var poolInstance = new ObjectPool<GameObject>(
CreatePooledItem,
OnTakeFromPool,
OnReturnedToPool,
OnDestroyPoolObject,
collectionChecks,
10,
100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment