Esempio n. 1
0
    void Start()
    {
        local4PHandler = FindObjectOfType <Local4PHandler>();

        canvas     = local4PHandler.canvas;
        playerArea = local4PHandler.playerArea;
    }
Esempio n. 2
0
    void Start()
    {
        List <string> deck = Local4PHandler.GenerateDeck();

        local4PHandler = FindObjectOfType <Local4PHandler>();

        int i = 0;

        foreach (string card in deck)
        {
            if (this.name == card)
            {
                cardFace = local4PHandler.cardFaces[i];
                break;
            }
            i++;
        }

        spriteRenderer = this.GetComponent <Image>();
        sprite         = this.GetComponent <SpriteRenderer>();
    }
Esempio n. 3
0
 void Start()
 {
     local4PHandler = FindObjectOfType <Local4PHandler>();
     round          = local4PHandler.playerRound;
 }