Ejemplo n.º 1
0
    public void OnClick()
    {
        if (TC.MyTurn)
        {
            //print(card.cardColor + " : " + card.cardType);
            if (FindObjectOfType <CardController>().CheckCard(card))
            {
                playerInventory.CmdUseCard(card.cardType, card.cardColor);
                TC.CmdNextPlayer(card.cardType);

                Destroy(this.gameObject);
            }
        }
    }