I have a working solitaire game and I’d like to enhance the input.
The two things I’d like to accomplish together are:
- Drag and drop a card to a valid play spot. If you drop the card in an invalid place, it’s postilion will revert to it’s original location.
- Single click to select a card, then click to another spot or card to move it.
I can get both of these working just fine individually but can’t figure out how to make them both work at the same time. IIRC this is how the old windows Solitaire controls worked.
I’m using Input.GetMouseButtonDown
in the Update method and RayCasting for collision detection.