What is the best practice to add an altertPopup when dropping an item? Players can click yes to drop or click no to cancel. Should I make a new canvas with two buttons? when dragging item outside of the inventory area, it triggers to “show” the canvas UI instead of dropping item function? instead, hookup the dropping function to the canvas UI, so it will get triggers when clicking yes? If this is the correct logic, should I create a new script with a drop function that connect to this public void dropping function? or I just simply hookup this ItemDropper script to the new UI prefab? and write all the hide show UI code in this ItemDropper script?
In addition, do unity have a lot of external libraries (similar to pub, cocopods. etc.) that can make development more efficient? cause I don’t see a lot of unity function libraries from GitHub. is there a unity library pool like pub.dev for flutter dart, or cocopod for swift?