Hi guys!
I´m trying to get NGUI drag&drop working, but i´m experiencing some troubles. In short:
I have a button “A” with the DragDropItem script on it.
I have a panel “P” with the DragDropContainer script on it.
When I drag the “A” button and drop it on the “P” panel, the P::onDrop function is called, and i can do all the stuff correctly (destroying “A” and perform action). Everything Ok up to this moment.
However, i have other several buttons (OK, CANCEL, EXIT…). I don´t want to do anything if the user drops the “A” button on any of these buttons. If he does so, i have no way to know that the drop has happended, and the “A” button remains there freezed forever because i find no way to destroy it.
An obvious solution is to insert the DragDropContainer and implement the OnDrag method for every button on the gui, but i think its a bit… tricky.
Have any of you any hint about the best way to do this?.
Thank you a lot in advance!!
.:ismael