As it says in the title I’m making a trading card game. I don’t know how to script it so i can have many different cards and have them all do something different. Will I have to script every card separately? If there’s a way not to that would be preferred. And also how would I have a random hand at the start of the game? I’m relatively new to Unity. Thanks in advance for any help, it’s greatly appreciated.
Will I have to script every card separately?
Not really. Look at “C# delegates”, you can write functions and assign them to different cards. When you have 100 effects, instead of 100 scripts, you can write in one script to assign different effects to each card via delegates.
And also how would I have a random hand at the start of the game
Google on “programming shuffle cards”