Hi All,
I have 3 instances of a cube next to each other, each contains the same script and a colldier, basically a clone of a prefab. (eg. cube A, B and C)
I would like to start dragging at cube A, drag pass cube B and over to cube C. (The cubes does not move, I just need the mouse/touch collider event)
When dragging over cube B, I would like to flag a boolean for the scipt attached to cube B and do the same when I drag over cube C as well. Let's say "isCollided = true;"
I have managed to use OnDrag to capture the start of the dragging event but was unable to capture the collision of the rest of the cubes.
Sorry for the poor english and explanation. Hope someone can help.
Thanks in advance.