Beispiel #1
0
    void ReleaseCell(GameObject cell)
    {
        if (cell == null)
        {
            return;
        }

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