Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Pool Container #33

Open
mackysoft opened this issue Mar 2, 2022 · 0 comments
Open

[FEATURE] Pool Container #33

mackysoft opened this issue Mar 2, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@mackysoft
Copy link
Owner

mackysoft commented Mar 2, 2022

Implementing a static container that contains the pool allows the pool to be shared.
Must add the T Original { get; } property to the IUnityObjectPool<T>.

IPool<ParticleSystem> pool = ParticleSystemPoolContainer.Instance.GetPool(m_Original);
ParticleSystem ps = pool.Rent();
@mackysoft mackysoft added the enhancement New feature or request label Mar 2, 2022
@mackysoft mackysoft self-assigned this Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant