Hi!
So I’m creating a 2D board game (7 Wonders) in Unity and have a small issue with playing/discarding cards. I have a deck of cards in a players hand and I want to make a hover over script, which moves the card upwards and enables 3 buttons below it. (One for playing the card, one for discarding and one for an other function.)
My problem is, how do I tell the buttons to activate themselves in the right position on the canvas (below the card I hover over) and how will they know which card to place (so kinda how to “connect” them?)
The cards are located in a Player class’ 7 long List<> and obviously this list will decrease in time as we play the cards. I imagine that they will be placed in an other Player’s List<> (playedCards or something like this).
I hope I was clear and you get the idea. Thanks in advance!