Exemple #1
0
    // this method will be called when the card arrived to hand
    void ChangeLastCardStatusToInHand(GameObject card, WhereIsTheCardOrCreature w)
    {
        //Debug.Log("Changing state to Hand for card: " + card.gameObject.name);
        if (owner == AreaPosition.Bottom)
        {
            w.VisualState = VisualStates.BottomHand;
        }
        else
        {
            w.VisualState = VisualStates.TopHand;
        }

        // set correct sorting layer
        w.SetHandSortingLayer();
        // end command execution for DrawACArdCommand
        Command.CommandExecutionComplete();
    }