Creating a card game?

Hi there everyone! Sorry if this is the wrong place for this or anything, just thought i’d give it a shot and see if there’s anyone out there who can save me from my stress.

At the moment i’m trying to work on a 2D card game using Unity. I’ve currently got a menu sorted, all of my scenes are ready to be filled and my Card class has been created and instantiated in my GameManager for a list of 30 cards. However, I am having a lot of trouble figuring out how to go about the rest of the game. I plan on having the cards as images responding to integers, so that when say ‘1’ is called by the game, the card ‘Warrior’ will appear there. In the grand scheme of things, cards will be drawn and played in order to boost the players health or reduce the enemies health until there is a clear winner.

Is there anyone who can help me with this either on here or personally? Apologies if i’m asking too much, just the stress is really getting to me at the moment.

What is the first problem you are stuck on? I’m imagining from your description that you have the player and opponent scripts set up, giving both of those players 30 cards, and are now stuck on taking turns playing a card. For your example of ‘when I say 1, the card Warrior is selected’. Here is an example using switch-case :

var cardPlayed : int;

switch( cardPlayed )
{
	case 1 :
		// play the Warrior
	break;
	
	case 2 :
		// play the Wizard
	break;
	
	case 3 :
		// play the Archer
	break;
	
	case 4 :
		// play the Alchemist
	break;
}