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

namespace RootMotion.Demos
{
	// Token: 0x0200043F RID: 1087
	public class TransferMotion : MonoBehaviour
	{
		// Token: 0x060081EE RID: 33262 RVA: 0x00212970 File Offset: 0x00210B70
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 625413, XrefRangeEnd = 625415, 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: 0x060081EF RID: 33263 RVA: 0x002129B4 File Offset: 0x00210BB4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 625415, XrefRangeEnd = 625421, 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: 0x060081F0 RID: 33264 RVA: 0x002129F8 File Offset: 0x00210BF8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 625421, XrefRangeEnd = 625422, 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: 0x060081F1 RID: 33265 RVA: 0x00212A44 File Offset: 0x00210C44
		// 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, 100673156);
			TransferMotion.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TransferMotion>.NativeClassPtr, 100673157);
			TransferMotion.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TransferMotion>.NativeClassPtr, 100673158);
		}

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

		// Token: 0x17002C26 RID: 11302
		// (get) Token: 0x060081F3 RID: 33267 RVA: 0x00212AEC File Offset: 0x00210CEC
		// (set) Token: 0x060081F4 RID: 33268 RVA: 0x00212B20 File Offset: 0x00210D20
		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: 0x17002C27 RID: 11303
		// (get) Token: 0x060081F5 RID: 33269 RVA: 0x00212B48 File Offset: 0x00210D48
		// (set) Token: 0x060081F6 RID: 33270 RVA: 0x00212B70 File Offset: 0x00210D70
		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: 0x17002C28 RID: 11304
		// (get) Token: 0x060081F7 RID: 33271 RVA: 0x00212B94 File Offset: 0x00210D94
		// (set) Token: 0x060081F8 RID: 33272 RVA: 0x00212BBC File Offset: 0x00210DBC
		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: 0x04005701 RID: 22273
		private static readonly IntPtr NativeFieldInfoPtr_to;

		// Token: 0x04005702 RID: 22274
		private static readonly IntPtr NativeFieldInfoPtr_transferMotion;

		// Token: 0x04005703 RID: 22275
		private static readonly IntPtr NativeFieldInfoPtr_lastPosition;

		// Token: 0x04005704 RID: 22276
		private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Private_Void_0;

		// Token: 0x04005705 RID: 22277
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x04005706 RID: 22278
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
