Question by
MJG1123 · Sep 11, 2016 at 02:59 AM ·
instantiatevariablespawn
name a variable when it's created???
can I name a variable when I'm having something spawned, because i'm making a card game and as each new card is drawn I need to have the card spawn then have spots assigned to it and the only way I know how to do that is by names I.E. card23 spawns then it gets a varaible card23Health for example
instantiate blah blah > blah blah's health = 5
if 2 blah blah's exist then blah blah's 3 health = 2
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612092557im_/https://answers.unity.com/themes/thub/images/avi.jpg)