Hi, I am a Unity and NGUI newbie working on my first game.
Basically I want to create a 2D chess-like game where a pawn can be dragged and dropped across the chess board.
I've used UIDragObject which successfully made the pawn draggable and fire the OnDrag() event. However there's no way I can get the chess board to fire the OnDrop() event.
I switched to use DragDropItem for the pawn, DragDropRoot for a panel and DragDropSurface for the chess board. Now the chess board can fire OnDrop() event, but the pawn can only be dragged and dropped once.
Am I using the right components? Anyone please point me to the right direction.
BTW I have studied the Character Inventory and Drag Drop Example that comes with the NGUI package.
Thanks a lot!
Thomas