Skip to content

Instantly share code, notes, and snippets.

Draugor Draugor

Block or report user

Report or block Draugor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View SimplePool.cs
///
/// Simple pooling for Unity.
/// Author: Martin "quill18" Glaude (quill18@quill18.com)
/// Extended: Simon "Draugor" Wagner (https://www.twitter.com/Draugor_/)
/// Latest Version: https://gist.github.com/quill18/5a7cfffae68892621267
/// License: CC0 (http://creativecommons.org/publicdomain/zero/1.0/)
/// UPDATES:
/// 2018-01-04: - Added Extension Method for Despawn on GameObjects
/// - Changed the Member Lookup so it doesn't require a PoolMemberComponent anymore.
/// - for that i added a HashSet which contains all PoolMemberIDs (HashSet has O(1) contains operator)
You can’t perform that action at this time.