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

namespace RootMotion.Demos
{
	// Token: 0x0200042A RID: 1066
	[Token(Token = "0x200042A")]
	public class ResetInteractionObject : MonoBehaviour
	{
		// Token: 0x06002664 RID: 9828 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002664")]
		[Address(RVA = "0x505A30", Offset = "0x504A30", VA = "0x180505A30")]
		private void Start()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002665 RID: 9829 RVA: 0x0005897C File Offset: 0x00056B7C
		[Token(Token = "0x6002665")]
		[Address(RVA = "0x505900", Offset = "0x504900", VA = "0x180505900")]
		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: 0x06002666 RID: 9830 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002666")]
		[Address(RVA = "0x5059B0", Offset = "0x5049B0", VA = "0x1805059B0")]
		private IEnumerator ResetObject(float resetTime)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002667 RID: 9831 RVA: 0x000589C8 File Offset: 0x00056BC8
		[Token(Token = "0x6002667")]
		[Address(RVA = "0x503840", Offset = "0x502840", VA = "0x180503840")]
		public ResetInteractionObject()
		{
		}

		// Token: 0x04003014 RID: 12308
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4003014")]
		public float resetDelay = 1f;

		// Token: 0x04003015 RID: 12309
		[FieldOffset(Offset = "0x1C")]
		[Token(Token = "0x4003015")]
		private Vector3 defaultPosition;

		// Token: 0x04003016 RID: 12310
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4003016")]
		private Quaternion defaultRotation;

		// Token: 0x04003017 RID: 12311
		[FieldOffset(Offset = "0x38")]
		[Token(Token = "0x4003017")]
		private Transform defaultParent;

		// Token: 0x04003018 RID: 12312
		[FieldOffset(Offset = "0x40")]
		[Token(Token = "0x4003018")]
		private Rigidbody r;
	}
}
