using System;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x020002AF RID: 687
[Token(Token = "0x20002AF")]
public class EnemyHpHandler : MonoBehaviour
{
	// Token: 0x17000120 RID: 288
	// (get) Token: 0x060019F5 RID: 6645 RVA: 0x0003E62C File Offset: 0x0003C82C
	[Token(Token = "0x17000120")]
	public float Alpha
	{
		[Token(Token = "0x60019F5")]
		[Address(RVA = "0xA672E0", Offset = "0xA660E0", VA = "0x180A672E0")]
		get
		{
			return this.canvasGroup.alpha;
		}
	}

	// Token: 0x060019F6 RID: 6646 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60019F6")]
	[Address(RVA = "0xA67260", Offset = "0xA66060", VA = "0x180A67260")]
	public void UpdateHPBarScale(float widthScale)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060019F7 RID: 6647 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60019F7")]
	[Address(RVA = "0xA67200", Offset = "0xA66000", VA = "0x180A67200")]
	public void UpdateHPBarFrameScale(float widthScale)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060019F8 RID: 6648 RVA: 0x0003E64C File Offset: 0x0003C84C
	[Token(Token = "0x60019F8")]
	[Address(RVA = "0xA671A0", Offset = "0xA65FA0", VA = "0x180A671A0")]
	public void IncreaseTransparency(float deltaTime)
	{
		CanvasGroup canvasGroup = this.canvasGroup;
		float num = Mathf.MoveTowards(canvasGroup.alpha, 1f, deltaTime);
		canvasGroup.alpha = num;
	}

	// Token: 0x060019F9 RID: 6649 RVA: 0x0003E680 File Offset: 0x0003C880
	[Token(Token = "0x60019F9")]
	[Address(RVA = "0xA67150", Offset = "0xA65F50", VA = "0x180A67150")]
	public void DecreaseTransparency(float deltaTime)
	{
		CanvasGroup canvasGroup = this.canvasGroup;
		float alpha = canvasGroup.alpha;
		int num = 0;
		float num2 = Mathf.MoveTowards(alpha, (float)num, deltaTime);
		canvasGroup.alpha = num2;
	}

	// Token: 0x060019FA RID: 6650 RVA: 0x0003E6B4 File Offset: 0x0003C8B4
	[Token(Token = "0x60019FA")]
	[Address(RVA = "0xA672C0", Offset = "0xA660C0", VA = "0x180A672C0")]
	public void UpdateTransparency(float alpha)
	{
		this.canvasGroup.alpha = alpha;
	}

	// Token: 0x060019FB RID: 6651 RVA: 0x0003E6D4 File Offset: 0x0003C8D4
	[Token(Token = "0x60019FB")]
	[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
	public EnemyHpHandler()
	{
	}

	// Token: 0x040023C3 RID: 9155
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x40023C3")]
	[SerializeField]
	private CanvasGroup canvasGroup;

	// Token: 0x040023C4 RID: 9156
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x40023C4")]
	[SerializeField]
	private Image enemyHpBar;

	// Token: 0x040023C5 RID: 9157
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x40023C5")]
	[SerializeField]
	private Image enemyHpBarFrame;
}
