Hello, I'm currently working on a game jam project which works like a deck builder. The player is supposed to be able to select 3 out of 4 cards from their deck and when they choose the third one the three chosen cards are supposed to move towards three different locations.
I am having a hard time coding a component that can track which card was selected in which order. I've tried if statements for 1st 2nd 3rd cards, I've tried emiting signals but due to my lack of experience all of these have failed. How would I go about this to be able to track these everchanging variables.
I will post the codes for my Card Select Component scripts with the codes I've tried to solve my problem deleted in the comments as doing so here reaches the character limit.