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

namespace RootMotion.Demos
{
	// Token: 0x020003D2 RID: 978
	[Token(Token = "0x20003D2")]
	public class ResetInteractionObject : MonoBehaviour
	{
		// Token: 0x0600239B RID: 9115 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x600239B")]
		[Address(RVA = "0xBE7CC0", Offset = "0xBE6AC0", VA = "0x180BE7CC0")]
		private void Start()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x0600239C RID: 9116 RVA: 0x00051724 File Offset: 0x0004F924
		[Token(Token = "0x600239C")]
		[Address(RVA = "0xBE7B90", Offset = "0xBE6990", VA = "0x180BE7B90")]
		private void OnPickUp(Transform t)
		{
			base.StopAllCoroutines();
			float time = Time.time;
			float num = this.resetDelay;
			int num2;
			ResetInteractionObject.<ResetObject>d__7 <ResetObject>d__ = new ResetInteractionObject.<ResetObject>d__7(num2);
			num2 = 0;
			<ResetObject>d__.<>4__this = this;
			<ResetObject>d__.resetTime = num;
			Coroutine coroutine = base.StartCoroutine(<ResetObject>d__);
		}

		// Token: 0x0600239D RID: 9117 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x600239D")]
		[Address(RVA = "0xBE7C40", Offset = "0xBE6A40", VA = "0x180BE7C40")]
		private IEnumerator ResetObject(float resetTime)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x0600239E RID: 9118 RVA: 0x00051770 File Offset: 0x0004F970
		[Token(Token = "0x600239E")]
		[Address(RVA = "0xBE5C30", Offset = "0xBE4A30", VA = "0x180BE5C30")]
		public ResetInteractionObject()
		{
		}

		// Token: 0x04002D2A RID: 11562
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4002D2A")]
		public float resetDelay = 1f;

		// Token: 0x04002D2B RID: 11563
		[FieldOffset(Offset = "0x1C")]
		[Token(Token = "0x4002D2B")]
		private Vector3 defaultPosition;

		// Token: 0x04002D2C RID: 11564
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4002D2C")]
		private Quaternion defaultRotation;

		// Token: 0x04002D2D RID: 11565
		[FieldOffset(Offset = "0x38")]
		[Token(Token = "0x4002D2D")]
		private Transform defaultParent;

		// Token: 0x04002D2E RID: 11566
		[FieldOffset(Offset = "0x40")]
		[Token(Token = "0x4002D2E")]
		private Rigidbody r;
	}
}
