Hello again.
I have two sprites each of them have PolygonCollider2D, Rigidbody, and scripts with dragAndDrop etc.
My mission is combine two spites (something like in jig-saw puzzle). So my each spriteObj is a child of empty parentObj, a can combine two childObj into one parentObj. But now a facing with a problem, that a can’t move parentObj cause is hasn’t a PolygonCollider2D, and i don’t know how to add it from its children?
I’ve posted a solution to this problem a couple of times before. My idea was that every game piece has a empty parent. When dragging a piece, the parent is moved. When pieces are combined, one of the two parents gains both visible pieces, and the other parent is discarded. So the actual mouse capture and dragging code is on each individual piece, but since that always move the parent, all other pieces that are assembled will drag as well (since they share the same parent).