XPool
XPool copied to clipboard
[FEATURE] Pool Container
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();