// Start is called before the first frame update void Start() { List <string> deck = Run21GameAndAgent.GenerateDeck(); run21 = FindObjectOfType <Run21GameAndAgent>(); int i = 0; foreach (string card in deck) { if (this.name == card) { cardFace = run21.cardFaces[i]; break; } i++; } spriteRenderer = GetComponent <SpriteRenderer>(); selectable = GetComponent <Selectable>(); }
void Start() { run21 = FindObjectOfType <Run21GameAndAgent>(); }