public void AddCard(CardInfo info) { GameObject card = Instantiate(baseCard, handTransform); CardHolder cardHolder = card.GetComponent <CardHolder>(); cardHolder.UpdateScale(cardScale, "FadeInFadeOut", 1.5F); cardHolder.player = player; m_cards.Add(cardHolder); cardHolder.card.info = info; UpdateCardPositions(0.8F); }
private void IncreaseCardScale(CardHolder card) { card.UpdateScale(cardScale * 1.7F, "FastIn", 1.5F); UpdateCardPositions(1.5F); }