Exemple #1
0
    public void OnSelectCard(BattleCardMaid maid)
    {
        switch (currentCmd)
        {
        case CommandMaid.State.None:
        {
            if (CurrentSelectedCard != maid)
            {
                SetSelectedCard(maid);
            }
            else
            {
                SetSelectedCard(null);
            }
            break;
        }

        case CommandMaid.State.Attacking:
        case CommandMaid.State.Casting:
        {
            if (maid.Targetable)
            {
                currentSelector.SelectTarget(maid);
            }
            break;
        }
        }
    }