using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x02000307 RID: 775
[Token(Token = "0x2000307")]
public class UIHitNumber : MonoBehaviour
{
	// Token: 0x06001C80 RID: 7296 RVA: 0x000447FC File Offset: 0x000429FC
	[Token(Token = "0x6001C80")]
	[Address(RVA = "0x19E68A0", Offset = "0x19E58A0", VA = "0x1819E68A0")]
	public void Init()
	{
		UIJumpNumber component;
		do
		{
			GameObject gameObject = this.hitNumberPrefab;
			int num = 0;
			if (gameObject == num)
			{
				goto IL_99;
			}
			UIJumpNumber[] array = new UIJumpNumber[25];
			this.hitNumberElements = array;
			UIJumpNumber[] array2 = this.hitNumberElements;
			GameObject gameObject2 = this.hitNumberPrefab;
			Transform transform = base.transform;
			component = UnityEngine.Object.Instantiate<GameObject>(gameObject2, transform).GetComponent<UIJumpNumber>();
		}
		while (component != 0 && component == 0);
		throw new IndexOutOfRangeException();
		IL_99:
		Debug.LogError("傷害數字物件讀取失敗");
	}

	// Token: 0x06001C81 RID: 7297 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001C81")]
	[Address(RVA = "0x19E6B20", Offset = "0x19E5B20", VA = "0x1819E6B20")]
	public void SetHitNumber(int iHitNumber, Vector3 v3Pos, PlayerEffectPlay.Magic iElement = PlayerEffectPlay.Magic.Null)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001C82 RID: 7298 RVA: 0x000448AC File Offset: 0x00042AAC
	[Token(Token = "0x6001C82")]
	[Address(RVA = "0x328C40", Offset = "0x327C40", VA = "0x180328C40")]
	public UIHitNumber()
	{
	}

	// Token: 0x04002674 RID: 9844
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002674")]
	[SerializeField]
	private GameObject hitNumberPrefab;

	// Token: 0x04002675 RID: 9845
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002675")]
	private int hitNumberCount;

	// Token: 0x04002676 RID: 9846
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4002676")]
	private UIJumpNumber[] hitNumberElements;

	// Token: 0x04002677 RID: 9847
	[Token(Token = "0x4002677")]
	private const int HIT_NUMBER_LENGTH = 25;
}
