using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x020002FD RID: 765
[Token(Token = "0x20002FD")]
public class UIEnemyHPUpdater
{
	// Token: 0x06001C3C RID: 7228 RVA: 0x000441CC File Offset: 0x000423CC
	[Token(Token = "0x6001C3C")]
	[Address(RVA = "0x19DC030", Offset = "0x19DB030", VA = "0x1819DC030")]
	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: 0x06001C3D RID: 7229 RVA: 0x00044220 File Offset: 0x00042420
	[Token(Token = "0x6001C3D")]
	[Address(RVA = "0x19DBC50", Offset = "0x19DAC50", VA = "0x1819DBC50")]
	public void Init(EnemiesManager.EnemyData data)
	{
		this.data = data;
		this.hpPercentLerp = 1f;
		this.appearanceTimer = 10f;
	}

	// Token: 0x06001C3E RID: 7230 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001C3E")]
	[Address(RVA = "0x19DBC80", Offset = "0x19DAC80", VA = "0x1819DBC80")]
	public void UpdateInformation()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001C3F RID: 7231 RVA: 0x0004424C File Offset: 0x0004244C
	[Token(Token = "0x6001C3F")]
	[Address(RVA = "0x19DBBE0", Offset = "0x19DABE0", VA = "0x1819DBBE0")]
	public void Dispose()
	{
		this.data.Npc.<HasHPBarAttached>k__BackingField = false;
		GameObject gameObject = this.hpBarUI.gameObject;
		int num = 0;
		gameObject.SetActive(num != 0);
	}

	// Token: 0x0400263E RID: 9790
	[FieldOffset(Offset = "0x10")]
	[Token(Token = "0x400263E")]
	private EnemiesManager.EnemyData data;

	// Token: 0x0400263F RID: 9791
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x400263F")]
	private EnemyHpHandler hpBarUI;

	// Token: 0x04002640 RID: 9792
	[Token(Token = "0x4002640")]
	private const float APPEARANCE_DURATION = 10f;

	// Token: 0x04002641 RID: 9793
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002641")]
	private float appearanceTimer = 10f;

	// Token: 0x04002642 RID: 9794
	[FieldOffset(Offset = "0x24")]
	[Token(Token = "0x4002642")]
	private float hpPercentLerp = 1f;

	// Token: 0x04002643 RID: 9795
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4002643")]
	private Action<UIEnemyHPUpdater> recycleHandler;
}
