using System.Collections.Generic; using Continentis.MainGame.Card; using Lean.Pool; using SLSUtilities.General; using UnityEngine; namespace Continentis.MainGame.UI { public class HUD_Intention : HUDElementBase { public List intentionCards = new List(); public void Clear() { intentionCards.For(card => LeanPool.Despawn(card.gameObject)); intentionCards.Clear(); } public void AddCard(IntentionCardView cardView) { intentionCards.Add(cardView); cardView.transform.SetParent(hudTransform); } public void RemoveCard(IntentionCardView cardView) { LeanPool.Despawn(cardView.gameObject); intentionCards.Remove(cardView); } } }