예제 #1
0
    public void CardOnPushUp(CardParts parts)
    {
        if (pushDownCardParts == null) {return;}

        pushDownCardParts = null;
        cardPartsPushUp();
    }
예제 #2
0
 public void CardOnPushDown(CardParts parts)
 {
     pushDownCardParts = parts;
     cardPartsPushDown(parts.GetCard());
 }
예제 #3
0
 public void CardClick(CardParts parts)
 {
     cardPartsClick(parts);
 }
예제 #4
0
    private void CardPartsClick(CardParts parts)
    {
        if (!isTouchLock) {return;}

        if (parts.isSelected)
        {
            UnsetCard(parts);
        }
        else if (!IsAllCardSet())
        {
            SetCard(parts);
        }
        UpdateStartBattleButton();
    }
예제 #5
0
 private void UnsetCard(CardParts cardParts)
 {
     cardParts.Deselected();
     selectedCardParts[Array.IndexOf(selectedCardParts, cardParts)] = null;
 }
예제 #6
0
 private void SetCard(CardParts cardParts)
 {
     int index = NextIndex();
     selectedCardParts[index] = cardParts;
     cardParts.Selected(SELECTED_CARD_ORDER_TEXTS[index]);
 }