Files
Continentis/Assets/Scripts/MainGame/UI/HUDPage/HUDElements/HUD_Intention.cs
SoulliesOfficial 61a397dd4c MOD!
2025-10-23 00:49:44 -04:00

32 lines
836 B
C#

using System.Collections.Generic;
using Continentis.MainGame.Card;
using Lean.Pool;
using SLSFramework.General;
using UnityEngine;
namespace Continentis.MainGame.UI
{
public class HUD_Intention : HUDElementBase
{
public List<IntentionCardView> intentionCards = new List<IntentionCardView>();
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);
}
}
}