using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x020002B0 RID: 688
[Token(Token = "0x20002B0")]
public class UIEnemyHPUpdater
{
	// Token: 0x060019FC RID: 6652 RVA: 0x0003E6E8 File Offset: 0x0003C8E8
	[Token(Token = "0x60019FC")]
	[Address(RVA = "0x760E50", Offset = "0x75FC50", VA = "0x180760E50")]
	public UIEnemyHPUpdater(EnemyHpHandler hpBarUI, Action<UIEnemyHPUpdater> recycleHandler)
	{
		this.hpBarUI = hpBarUI;
		this.recycleHandler = recycleHandler;
		int num = 0;
		hpBarUI.UpdateTransparency((float)num);
		hpBarUI.gameObject.SetActive(true);
	}

	// Token: 0x060019FD RID: 6653 RVA: 0x0003E73C File Offset: 0x0003C93C
	[Token(Token = "0x60019FD")]
	[Address(RVA = "0x760A70", Offset = "0x75F870", VA = "0x180760A70")]
	public void Init(EnemiesManager.EnemyData data)
	{
		this.data = data;
		this.hpPercentLerp = 1f;
		this.appearanceTimer = 10f;
	}

	// Token: 0x060019FE RID: 6654 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60019FE")]
	[Address(RVA = "0x760AA0", Offset = "0x75F8A0", VA = "0x180760AA0")]
	public void UpdateInformation()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060019FF RID: 6655 RVA: 0x0003E768 File Offset: 0x0003C968
	[Token(Token = "0x60019FF")]
	[Address(RVA = "0x760A00", Offset = "0x75F800", VA = "0x180760A00")]
	public void Dispose()
	{
		this.data.Npc.<HasHPBarAttached>k__BackingField = false;
		GameObject gameObject = this.hpBarUI.gameObject;
		int num = 0;
		gameObject.SetActive(num != 0);
	}

	// Token: 0x040023C6 RID: 9158
	[FieldOffset(Offset = "0x10")]
	[Token(Token = "0x40023C6")]
	private EnemiesManager.EnemyData data;

	// Token: 0x040023C7 RID: 9159
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x40023C7")]
	private EnemyHpHandler hpBarUI;

	// Token: 0x040023C8 RID: 9160
	[Token(Token = "0x40023C8")]
	private const float APPEARANCE_DURATION = 10f;

	// Token: 0x040023C9 RID: 9161
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x40023C9")]
	private float appearanceTimer = 10f;

	// Token: 0x040023CA RID: 9162
	[FieldOffset(Offset = "0x24")]
	[Token(Token = "0x40023CA")]
	private float hpPercentLerp = 1f;

	// Token: 0x040023CB RID: 9163
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x40023CB")]
	private Action<UIEnemyHPUpdater> recycleHandler;
}
