using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x020002BA RID: 698
[Token(Token = "0x20002BA")]
public class UIHitNumber : MonoBehaviour
{
	// Token: 0x06001A40 RID: 6720 RVA: 0x0003ED1C File Offset: 0x0003CF1C
	[Token(Token = "0x6001A40")]
	[Address(RVA = "0x76ABE0", Offset = "0x7699E0", VA = "0x18076ABE0")]
	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: 0x06001A41 RID: 6721 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A41")]
	[Address(RVA = "0x76AE60", Offset = "0x769C60", VA = "0x18076AE60")]
	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: 0x06001A42 RID: 6722 RVA: 0x0003EDCC File Offset: 0x0003CFCC
	[Token(Token = "0x6001A42")]
	[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
	public UIHitNumber()
	{
	}

	// Token: 0x040023FC RID: 9212
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x40023FC")]
	[SerializeField]
	private GameObject hitNumberPrefab;

	// Token: 0x040023FD RID: 9213
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x40023FD")]
	private int hitNumberCount;

	// Token: 0x040023FE RID: 9214
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x40023FE")]
	private UIJumpNumber[] hitNumberElements;

	// Token: 0x040023FF RID: 9215
	[Token(Token = "0x40023FF")]
	private const int HIT_NUMBER_LENGTH = 25;
}
