2025-10-03 00:02:43 -04:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Continentis.MainGame.Card;
|
|
|
|
|
using Lean.Pool;
|
2025-10-23 00:49:44 -04:00
|
|
|
using SLSFramework.General;
|
2025-10-03 00:02:43 -04:00
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|