using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using UnityEngine;

namespace RootMotion.Demos
{
	// Token: 0x020003E7 RID: 999
	public class TransferMotion : MonoBehaviour
	{
		// Token: 0x0600799B RID: 31131 RVA: 0x001EFC34 File Offset: 0x001EDE34
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 593099, XrefRangeEnd = 593101, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnEnable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TransferMotion.NativeMethodInfoPtr_OnEnable_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600799C RID: 31132 RVA: 0x001EFC78 File Offset: 0x001EDE78
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 593101, XrefRangeEnd = 593107, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Update()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TransferMotion.NativeMethodInfoPtr_Update_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600799D RID: 31133 RVA: 0x001EFCBC File Offset: 0x001EDEBC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 593107, XrefRangeEnd = 593108, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe TransferMotion()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<TransferMotion>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TransferMotion.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600799E RID: 31134 RVA: 0x001EFD08 File Offset: 0x001EDF08
		// Note: this type is marked as 'beforefieldinit'.
		static TransferMotion()
		{
			Il2CppClassPointerStore<TransferMotion>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.Demos", "TransferMotion");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<TransferMotion>.NativeClassPtr);
			TransferMotion.NativeFieldInfoPtr_to = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TransferMotion>.NativeClassPtr, "to");
			TransferMotion.NativeFieldInfoPtr_transferMotion = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TransferMotion>.NativeClassPtr, "transferMotion");
			TransferMotion.NativeFieldInfoPtr_lastPosition = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TransferMotion>.NativeClassPtr, "lastPosition");
			TransferMotion.NativeMethodInfoPtr_OnEnable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TransferMotion>.NativeClassPtr, 100672443);
			TransferMotion.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TransferMotion>.NativeClassPtr, 100672444);
			TransferMotion.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TransferMotion>.NativeClassPtr, 100672445);
		}

		// Token: 0x0600799F RID: 31135 RVA: 0x0000351C File Offset: 0x0000171C
		public TransferMotion(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x1700298B RID: 10635
		// (get) Token: 0x060079A0 RID: 31136 RVA: 0x001EFDB0 File Offset: 0x001EDFB0
		// (set) Token: 0x060079A1 RID: 31137 RVA: 0x001EFDE4 File Offset: 0x001EDFE4
		public unsafe Transform to
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TransferMotion.NativeFieldInfoPtr_to);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Transform(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(TransferMotion.NativeFieldInfoPtr_to), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x1700298C RID: 10636
		// (get) Token: 0x060079A2 RID: 31138 RVA: 0x001EFE0C File Offset: 0x001EE00C
		// (set) Token: 0x060079A3 RID: 31139 RVA: 0x001EFE34 File Offset: 0x001EE034
		public unsafe float transferMotion
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TransferMotion.NativeFieldInfoPtr_transferMotion);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TransferMotion.NativeFieldInfoPtr_transferMotion)) = value;
			}
		}

		// Token: 0x1700298D RID: 10637
		// (get) Token: 0x060079A4 RID: 31140 RVA: 0x001EFE58 File Offset: 0x001EE058
		// (set) Token: 0x060079A5 RID: 31141 RVA: 0x001EFE80 File Offset: 0x001EE080
		public unsafe Vector3 lastPosition
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TransferMotion.NativeFieldInfoPtr_lastPosition);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TransferMotion.NativeFieldInfoPtr_lastPosition)) = value;
			}
		}

		// Token: 0x04005158 RID: 20824
		private static readonly IntPtr NativeFieldInfoPtr_to;

		// Token: 0x04005159 RID: 20825
		private static readonly IntPtr NativeFieldInfoPtr_transferMotion;

		// Token: 0x0400515A RID: 20826
		private static readonly IntPtr NativeFieldInfoPtr_lastPosition;

		// Token: 0x0400515B RID: 20827
		private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Private_Void_0;

		// Token: 0x0400515C RID: 20828
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x0400515D RID: 20829
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
