void ReleaseCell(GameObject cell) { if (cell == null) { return; } if (Application.isPlaying) { if (cellCache != null) { cellCache.Release(cell); } } else { destroyingList.Add(cell); } }
private void BulledsObserverOnRemoved(object sender, CollectionChangedEventArgs <TParticle> e) { mCache.Release(mParticleViews[e.Elem]); mParticleViews.Remove(e.Elem); }