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

// Token: 0x020002FC RID: 764
[Token(Token = "0x20002FC")]
public class EnemyHpHandler : MonoBehaviour
{
	// Token: 0x17000132 RID: 306
	// (get) Token: 0x06001C35 RID: 7221 RVA: 0x00044110 File Offset: 0x00042310
	[Token(Token = "0x17000132")]
	public float Alpha
	{
		[Token(Token = "0x6001C35")]
		[Address(RVA = "0xD0A6F0", Offset = "0xD096F0", VA = "0x180D0A6F0")]
		get
		{
			return this.canvasGroup.alpha;
		}
	}

	// Token: 0x06001C36 RID: 7222 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001C36")]
	[Address(RVA = "0xD0A670", Offset = "0xD09670", VA = "0x180D0A670")]
	public void UpdateHPBarScale(float widthScale)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001C37 RID: 7223 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001C37")]
	[Address(RVA = "0xD0A610", Offset = "0xD09610", VA = "0x180D0A610")]
	public void UpdateHPBarFrameScale(float widthScale)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001C38 RID: 7224 RVA: 0x00044130 File Offset: 0x00042330
	[Token(Token = "0x6001C38")]
	[Address(RVA = "0xD0A5B0", Offset = "0xD095B0", VA = "0x180D0A5B0")]
	public void IncreaseTransparency(float deltaTime)
	{
		CanvasGroup canvasGroup = this.canvasGroup;
		float num = Mathf.MoveTowards(canvasGroup.alpha, 1f, deltaTime);
		canvasGroup.alpha = num;
	}

	// Token: 0x06001C39 RID: 7225 RVA: 0x00044164 File Offset: 0x00042364
	[Token(Token = "0x6001C39")]
	[Address(RVA = "0xD0A560", Offset = "0xD09560", VA = "0x180D0A560")]
	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: 0x06001C3A RID: 7226 RVA: 0x00044198 File Offset: 0x00042398
	[Token(Token = "0x6001C3A")]
	[Address(RVA = "0xD0A6D0", Offset = "0xD096D0", VA = "0x180D0A6D0")]
	public void UpdateTransparency(float alpha)
	{
		this.canvasGroup.alpha = alpha;
	}

	// Token: 0x06001C3B RID: 7227 RVA: 0x000441B8 File Offset: 0x000423B8
	[Token(Token = "0x6001C3B")]
	[Address(RVA = "0x328C40", Offset = "0x327C40", VA = "0x180328C40")]
	public EnemyHpHandler()
	{
	}

	// Token: 0x0400263B RID: 9787
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x400263B")]
	[SerializeField]
	private CanvasGroup canvasGroup;

	// Token: 0x0400263C RID: 9788
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x400263C")]
	[SerializeField]
	private Image enemyHpBar;

	// Token: 0x0400263D RID: 9789
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x400263D")]
	[SerializeField]
	private Image enemyHpBarFrame;
}
