コード例 #1
0
    void Start()
    {
        local3PHandler = FindObjectOfType <Local3PHandler>();

        canvas     = local3PHandler.canvas;
        playerArea = local3PHandler.playerArea;
    }
コード例 #2
0
    void Start()
    {
        List <string> deck = Local3PHandler.GenerateDeck();

        local3PHandler = FindObjectOfType <Local3PHandler>();

        int i = 0;

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

        spriteRenderer = this.GetComponent <Image>();
        sprite         = this.GetComponent <SpriteRenderer>();
    }
コード例 #3
0
 void Start()
 {
     local3PHandler = FindObjectOfType <Local3PHandler>();
     round          = local3PHandler.playerRound;
 }