Esempio n. 1
0
 protected override void OnPooled()
 {
     if (this.meshFilter)
     {
         this.meshFilter.sharedMesh = null;
     }
     if (this.meshBatch)
     {
         AssetPool.Free(ref this.meshBatch);
     }
     this.meshData.Free();
     this.meshGroup.Free();
 }
Esempio n. 2
0
 protected override void OnPooled()
 {
     if ((bool)meshFilter)
     {
         meshFilter.sharedMesh = null;
     }
     if ((bool)meshBatch)
     {
         AssetPool.Free(ref meshBatch);
     }
     meshData.Free();
     meshGroup.Free();
 }
 protected override void OnPooled()
 {
     if (this.meshCollider)
     {
         this.meshCollider.sharedMesh = null;
     }
     if (this.meshBatch)
     {
         AssetPool.Free(ref this.meshBatch);
     }
     this.meshData.Free();
     this.meshGroup.Free();
     this.meshLookup.src.Clear();
     this.meshLookup.dst.Clear();
 }