Skip to content

Dustbin - Multiple Targets

Each box carries a Type and each dustbin lists the types it takes in AcceptTypes. While a box is in the air, every bin renders from its CanDrop, hovered or not: the bins that can take the box get a dashed outline, the others dim - and turn the pointer into a no-drop cursor. A bin turns black once the box is over it and can drop (IsOver and CanDrop), and remembers the last box it took. The item's .NET type plays no part: all four boxes are the same SourceBox record.

accepts: box
accepts: knight, card
accepts: box, knight, card
Glass
Banana
Knight
Card #1
An unhandled error has occurred. Reload 🗙