2026-02-13 09:22:11 -05:00
|
|
|
using SLSUtilities.General;
|
|
|
|
|
using SLSUtilities.UI;
|
2025-12-08 05:27:53 -05:00
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI.Extensions.ColorPicker;
|
|
|
|
|
|
2026-02-13 09:22:11 -05:00
|
|
|
namespace Cielonos.MainGame.UI
|
2025-12-08 05:27:53 -05:00
|
|
|
{
|
|
|
|
|
public class BossHealthBar : AttributeBarBase
|
|
|
|
|
{
|
|
|
|
|
protected override void Awake()
|
|
|
|
|
{
|
|
|
|
|
base.Awake();
|
|
|
|
|
useLerpColor = true;
|
|
|
|
|
fillColor = new LerpColor(GetTargetColor(1), 0.2f);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Color GetTargetColor(float ratio)
|
|
|
|
|
{
|
|
|
|
|
float hue = Mathf.Lerp(120f, 0f, 1 - ratio);
|
|
|
|
|
return HSVUtil.ConvertHsvToRgb(hue, 0.41f, 1f, 1f);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|