Exemplo n.º 1
0
    private void SelectDeckCard(APFCardUI selectCard)
    {
        DeselectDeckCard(SelectedCard_OnDeck);

        if (selectCard != null)
        {
            SelectedCard_OnDeck = selectCard;

            SelectedCard_OnDeck.gameObject.transform.localScale = new Vector3(PFConst.Scale_ClickedCardOnDeck, PFConst.Scale_ClickedCardOnDeck, 1.0f);

            PFTable.ECardApplyTarget applyTarget = PFCardTable.GetApplyTarget(SelectedCard_OnDeck.CardTableId);

            if (applyTarget == PFTable.ECardApplyTarget.EnemyAll)
            {
                List <APFCharacter> aliveMonsterList = APFGameMode.GetInstance().GetAliveCharList(PFTable.CharacterType.Monster);
                PFCharacterStuff.Active_CharSelectIconUI(aliveMonsterList, true);
            }
        }
    }
Exemplo n.º 2
0
    private List <APFCharacterController> GetTargetList(PFTable.Card srcCard, APFCharacterController specifiedTarget)
    {
        List <APFCharacterController> resultList = new List <APFCharacterController>();

        PFTable.ECardApplyTarget applyTarget = PFCardTable.GetApplyTarget(srcCard.uid);
        if (applyTarget == PFTable.ECardApplyTarget.EnemyAll)
        {
            List <APFCharacter> aliveMonsterList = APFGameMode.GetInstance().GetAliveCharList(PFTable.CharacterType.Monster);

            for (int i = 0; i < aliveMonsterList.Count; ++i)
            {
                APFCharacterController monCtrl = aliveMonsterList[i].GetCharacterController();
                resultList.Add(monCtrl);
            }
        }
        else
        {
            resultList.Add(specifiedTarget);
        }

        return(resultList);
    }