(Edit since my following paragraphs were a bit lengthy. TLDR; I want my panel to only except one gameObject at a time instead of multiple.)
I’m creating a battle card game, and right now I have 2 panels – one that represents the player’s hand, and the other that represents the tabletop where the player would place a card. So far, I have it that the player is able to click and drag cards from their hand to the tabletop (which in the future will initiate an attack), but as of now they’re able to put any amount of the cards they wish into the tabletop panel, when I only want one to be allowed at a time. I’m somewhat new to unity, so I’m not sure where to start.
I have 4 scripts so far: One that makes up my Scriptable Object card, another that’s for what’s displayed on the card (such as names, stats, etc.) , another for the cards that give me the ability to drag them into either panel, and a final one for the tabletop panel that allows me to insert a card from my hand.
I wasn’t sure which script would be needed so I didn’t copy them over in case they weren’t necessary, but feel free to ask me if they’re needed!
Thank you for any help you can offer.