28 lines
628 B
C#
28 lines
628 B
C#
using SLSUtilities.UI;
|
|
using UnityEngine;
|
|
|
|
namespace Cielonos.MainGame.UI
|
|
{
|
|
public class BossArmorBar : AttributeBarBase
|
|
{
|
|
public bool willFadeOut;
|
|
private float fadeOutTimer = 1f;
|
|
|
|
public override void Update()
|
|
{
|
|
base.Update();
|
|
|
|
if (willFadeOut)
|
|
{
|
|
fadeOutTimer -= Time.deltaTime;
|
|
|
|
if (fadeOutTimer <= 0f)
|
|
{
|
|
FadeOut();
|
|
willFadeOut = false;
|
|
fadeOutTimer = 1f;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |