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