Ejemplo n.º 1
0
    // 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>();
    }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     uiButton = FindObjectOfType <UIButton>();
     run21    = FindObjectOfType <Run21>();
 }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     run21 = FindObjectOfType <Run21>();
 }
Ejemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     run21   = FindObjectOfType <Run21>();
     sumText = GetComponent <Text>();
 }