2026-03-20 12:07:44 -04:00
|
|
|
using Cielonos.MainGame.Characters;
|
2026-06-02 12:55:39 -04:00
|
|
|
using Lean.Pool;
|
2026-03-20 12:07:44 -04:00
|
|
|
using SLSUtilities.General;
|
|
|
|
|
using SLSUtilities.UI;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Cielonos.MainGame.UI
|
|
|
|
|
{
|
|
|
|
|
public class EnemyInfoUIArea : UIElementBase
|
|
|
|
|
{
|
|
|
|
|
public GameObject infoUnitPrefab;
|
|
|
|
|
|
|
|
|
|
public void CreateInfoUnit(CharacterBase enemy)
|
|
|
|
|
{
|
2026-06-02 12:55:39 -04:00
|
|
|
EnemyInfoUnitBase unit = LeanPool.Spawn(infoUnitPrefab, transform).GetComponent<EnemyInfoUnitBase>();
|
2026-03-20 12:07:44 -04:00
|
|
|
unit.Initialize(enemy);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|