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

// Token: 0x02000381 RID: 897
[Token(Token = "0x2000381")]
public class LootBoxController : MonoBehaviour
{
	// Token: 0x06002312 RID: 8978 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6002312")]
	[Address(RVA = "0x423340", Offset = "0x422340", VA = "0x180423340")]
	private void Start()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06002313 RID: 8979 RVA: 0x00054614 File Offset: 0x00052814
	[Token(Token = "0x6002313")]
	[Address(RVA = "0x422EE0", Offset = "0x421EE0", VA = "0x180422EE0")]
	private void OnMouseDown()
	{
		if (!this.isOpened)
		{
			IEnumerator enumerator = this.PlayFx();
			Coroutine coroutine = base.StartCoroutine(enumerator);
			return;
		}
	}

	// Token: 0x06002314 RID: 8980 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6002314")]
	[Address(RVA = "0x422F10", Offset = "0x421F10", VA = "0x180422F10")]
	private IEnumerator PlayFx()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06002315 RID: 8981 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6002315")]
	[Address(RVA = "0x422F80", Offset = "0x421F80", VA = "0x180422F80")]
	private IEnumerator PlayIcon()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06002316 RID: 8982 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6002316")]
	[Address(RVA = "0x422DC0", Offset = "0x421DC0", VA = "0x180422DC0")]
	public void ChangedFx(int i)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06002317 RID: 8983 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6002317")]
	[Address(RVA = "0x423200", Offset = "0x422200", VA = "0x180423200")]
	public void SetupVfx()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06002318 RID: 8984 RVA: 0x0005463C File Offset: 0x0005283C
	[Token(Token = "0x6002318")]
	[Address(RVA = "0x422EE0", Offset = "0x421EE0", VA = "0x180422EE0")]
	public void PlayAllVfx()
	{
		if (!this.isOpened)
		{
			IEnumerator enumerator = this.PlayFx();
			Coroutine coroutine = base.StartCoroutine(enumerator);
			return;
		}
	}

	// Token: 0x06002319 RID: 8985 RVA: 0x00054664 File Offset: 0x00052864
	[Token(Token = "0x6002319")]
	[Address(RVA = "0x422FF0", Offset = "0x421FF0", VA = "0x180422FF0")]
	public void ResetVfx()
	{
		GameObject[] array = GameObject.FindGameObjectsWithTag("Effects");
		this.DesFxObjs = array;
		GameObject[] desFxObjs = this.DesFxObjs;
		int num = 0;
		int length = desFxObjs.Length;
		if (num < length)
		{
			UnityEngine.Object.Destroy(desFxObjs[num].gameObject);
			num++;
		}
		this.isOpened = num != 0;
		GameObject[] array2 = GameObject.FindGameObjectsWithTag("Icon");
		this.DesIconObjs = array2;
		GameObject[] desIconObjs = this.DesIconObjs;
		int length2 = desIconObjs.Length;
		if (num < length2)
		{
			UnityEngine.Object.Destroy(desIconObjs[num].gameObject);
			num++;
		}
		int num2;
		LootBoxController.<PlayIcon>d__13 <PlayIcon>d__ = new LootBoxController.<PlayIcon>d__13(num2);
		num2 = 0;
		<PlayIcon>d__.<>4__this = this;
		Coroutine coroutine = base.StartCoroutine(<PlayIcon>d__);
	}

	// Token: 0x0600231A RID: 8986 RVA: 0x00054718 File Offset: 0x00052918
	[Token(Token = "0x600231A")]
	[Address(RVA = "0x328C40", Offset = "0x327C40", VA = "0x180328C40")]
	public LootBoxController()
	{
	}

	// Token: 0x04002C88 RID: 11400
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002C88")]
	public int idIcon;

	// Token: 0x04002C89 RID: 11401
	[FieldOffset(Offset = "0x1C")]
	[Token(Token = "0x4002C89")]
	public int idEffect;

	// Token: 0x04002C8A RID: 11402
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002C8A")]
	public bool isOpened;

	// Token: 0x04002C8B RID: 11403
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4002C8B")]
	public GameObject[] IconPrefabs;

	// Token: 0x04002C8C RID: 11404
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x4002C8C")]
	public GameObject[] EffectPrefabs;

	// Token: 0x04002C8D RID: 11405
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4002C8D")]
	public GameObject[] DesFxObjs;

	// Token: 0x04002C8E RID: 11406
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x4002C8E")]
	public GameObject[] DesIconObjs;

	// Token: 0x04002C8F RID: 11407
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x4002C8F")]
	private GameObject Lootbox;

	// Token: 0x04002C90 RID: 11408
	[FieldOffset(Offset = "0x50")]
	[Token(Token = "0x4002C90")]
	public Text effectsText;

	// Token: 0x04002C91 RID: 11409
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x4002C91")]
	public Text nameEffectText;
}
