public void CreateInvisibleCard(CardWrapper FromCard)
 {
     InvisibleCard = MonoBehaviour.Instantiate(BattlePrefabsConfig.Get().CardWrapperPrefab);
     InvisibleCard.SetParent(GetTransform());
     InvisibleCard.SetState(CardState.Hand, FromCard.GetOriginalSkill());
     InvisibleCard.gameObject.SetActive(false);
 }
Exemplo n.º 2
0
        public void AddCard(CardWrapper NewCard)
        {
            Cards.Add(NewCard);
            NewCard.SetState(CardState.Hand, NewCard.GetOriginalSkill());
            NewCard.SetParent(GetTransform());
            ShrinkCards();

            UpdateHandData();
        }