Example #1
0
    void EnemyPlayedCard(string cardId, int squarePosition)
    {
        // mirrored!
        squarePosition = transform.childCount - 1 - squarePosition;
        BoardSquareGUI_canvas square = GetSquareAtPosition(squarePosition);

        square.TakeUp(cardId);
    }
Example #2
0
    void PlayerPlayedCard(int response, string cardId, int cardPositionInHand, int squarePosition)
    {
        if (response == Responses.CARD_PLAYED_FAILED)
        {
            return;
        }

        BoardSquareGUI_canvas square = GetSquareAtPosition(squarePosition);

        square.TakeUp(cardId);
    }