void EnemyPlayedCard(string cardId, int squarePosition) { // mirrored! squarePosition = transform.childCount - 1 - squarePosition; BoardSquareGUI_canvas square = GetSquareAtPosition(squarePosition); square.TakeUp(cardId); }
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); }