Exemple #1
0
    private void SelectCard(Int32 id, Int32 offset)
    {
        QuadMistCard cardInfo = this.GetCardInfo(id, offset);

        this.selectedCardList.Add(cardInfo);
        QuadMistUI.allCardList.Remove(cardInfo);
        Byte[] array = this.count;
        array[id] = (Byte)(array[id] - 1);
        QuadMistGame.UpdateSelectedCardList(this.selectedCardList);
        this.DisplayCardList();
    }
Exemple #2
0
    private void DeselectCard(Int32 index)
    {
        QuadMistCard quadMistCard = this.selectedCardList[index];

        this.selectedCardList.Remove(quadMistCard);
        QuadMistUI.allCardList.Add(quadMistCard);
        Byte[] array = this.count;
        Byte   id    = quadMistCard.id;

        array[(Int32)id] = (Byte)(array[(Int32)id] + 1);
        QuadMistGame.UpdateSelectedCardList(this.selectedCardList);
        this.DisplayCardList();
    }
Exemple #3
0
    private void OnClickSelectedCard(GameObject go)
    {
        Int32 siblingIndex = go.transform.GetSiblingIndex();

        if (siblingIndex < this.selectedCardList.Count)
        {
            FF9Sfx.FF9SFX_Play(101);
            QuadMistCard quadMistCard = this.selectedCardList[siblingIndex];
            this.selectedCardList.RemoveAt(siblingIndex);
            QuadMistUI.allCardList.Add(quadMistCard);
            Byte[] array = this.count;
            Byte   id    = quadMistCard.id;
            array[(Int32)id] = (Byte)(array[(Int32)id] + 1);
            QuadMistGame.UpdateSelectedCardList(this.selectedCardList);
            this.DisplayCardList();
            this.DisplayCardDetail();
        }
    }