示例#1
0
    // 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>();
    }
示例#2
0
 void Start()
 {
     run21 = FindObjectOfType <Run21GameAndAgent>();
 }