Esempio n. 1
0
 // called on children getting merged by their parent
 void OnGettingMerged()
 {
     Object.Destroy(obj.mf.mesh);
     SplitManager.ReturnObject(obj);
     if (col != null)
     {
         SplitManager.ReturnCollider(col);
         col = null;
     }
     dead = true;
 }