예제 #1
0
    /// <summary>
    /// 播放牌面重置
    /// </summary>
    public void PlayRestCard()
    {
        List <GameObject> needSaveCard = new List <GameObject>();

        foreach (Transform card in handCardContainer)
        {
            if (defaultCardIdList.Contains(card.gameObject.GetInstanceID()))
            {
                continue;
            }
            needSaveCard.Add(card.gameObject);
        }
        foreach (GameObject item in needSaveCard)
        {
            ResourcesMgr.Instance.Add2Pool(item);
        }
        handCards.Clear();
        getCard = null;
        BattleAreaUtil.InitPlayerCards(this, true);
    }