Ejemplo n.º 1
0
    void Start()
    {
        local2PHandler = FindObjectOfType <Local2PHandler>();

        canvas     = local2PHandler.canvas;
        playerArea = local2PHandler.playerArea;
    }
Ejemplo n.º 2
0
    void Start()
    {
        List <string> deck = Local2PHandler.GenerateDeck();

        local2PHandler = FindObjectOfType <Local2PHandler>();

        int i = 0;

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

        spriteRenderer = this.GetComponent <Image>();
        sprite         = this.GetComponent <SpriteRenderer>();
    }
Ejemplo n.º 3
0
 void Start()
 {
     local2PHandler = FindObjectOfType <Local2PHandler>();
     round          = local2PHandler.playerRound;
 }