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

namespace RootMotion.Demos
{
	// Token: 0x02000412 RID: 1042
	public class MechSpiderController : MonoBehaviour
	{
		// Token: 0x17002B19 RID: 11033
		// (get) Token: 0x06007EDE RID: 32478 RVA: 0x002073BC File Offset: 0x002055BC
		public unsafe Vector3 inputVector
		{
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 623817, XrefRangeEnd = 623823, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(MechSpiderController.NativeMethodInfoPtr_get_inputVector_Public_get_Vector3_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
		}

		// Token: 0x06007EDF RID: 32479 RVA: 0x0020740C File Offset: 0x0020560C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 623823, XrefRangeEnd = 623847, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Update()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(MechSpiderController.NativeMethodInfoPtr_Update_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007EE0 RID: 32480 RVA: 0x00207450 File Offset: 0x00205650
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 623847, XrefRangeEnd = 623848, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe MechSpiderController()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<MechSpiderController>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(MechSpiderController.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007EE1 RID: 32481 RVA: 0x0020749C File Offset: 0x0020569C
		// Note: this type is marked as 'beforefieldinit'.
		static MechSpiderController()
		{
			Il2CppClassPointerStore<MechSpiderController>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.Demos", "MechSpiderController");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<MechSpiderController>.NativeClassPtr);
			MechSpiderController.NativeFieldInfoPtr_mechSpider = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<MechSpiderController>.NativeClassPtr, "mechSpider");
			MechSpiderController.NativeFieldInfoPtr_cameraTransform = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<MechSpiderController>.NativeClassPtr, "cameraTransform");
			MechSpiderController.NativeFieldInfoPtr_speed = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<MechSpiderController>.NativeClassPtr, "speed");
			MechSpiderController.NativeFieldInfoPtr_turnSpeed = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<MechSpiderController>.NativeClassPtr, "turnSpeed");
			MechSpiderController.NativeMethodInfoPtr_get_inputVector_Public_get_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MechSpiderController>.NativeClassPtr, 100672977);
			MechSpiderController.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MechSpiderController>.NativeClassPtr, 100672978);
			MechSpiderController.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MechSpiderController>.NativeClassPtr, 100672979);
		}

		// Token: 0x06007EE2 RID: 32482 RVA: 0x0000351C File Offset: 0x0000171C
		public MechSpiderController(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002B15 RID: 11029
		// (get) Token: 0x06007EE3 RID: 32483 RVA: 0x00207558 File Offset: 0x00205758
		// (set) Token: 0x06007EE4 RID: 32484 RVA: 0x0020758C File Offset: 0x0020578C
		public unsafe MechSpider mechSpider
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(MechSpiderController.NativeFieldInfoPtr_mechSpider);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new MechSpider(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(MechSpiderController.NativeFieldInfoPtr_mechSpider), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17002B16 RID: 11030
		// (get) Token: 0x06007EE5 RID: 32485 RVA: 0x002075B4 File Offset: 0x002057B4
		// (set) Token: 0x06007EE6 RID: 32486 RVA: 0x002075E8 File Offset: 0x002057E8
		public unsafe Transform cameraTransform
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(MechSpiderController.NativeFieldInfoPtr_cameraTransform);
				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(MechSpiderController.NativeFieldInfoPtr_cameraTransform), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17002B17 RID: 11031
		// (get) Token: 0x06007EE7 RID: 32487 RVA: 0x00207610 File Offset: 0x00205810
		// (set) Token: 0x06007EE8 RID: 32488 RVA: 0x00207638 File Offset: 0x00205838
		public unsafe float speed
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(MechSpiderController.NativeFieldInfoPtr_speed);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(MechSpiderController.NativeFieldInfoPtr_speed)) = value;
			}
		}

		// Token: 0x17002B18 RID: 11032
		// (get) Token: 0x06007EE9 RID: 32489 RVA: 0x0020765C File Offset: 0x0020585C
		// (set) Token: 0x06007EEA RID: 32490 RVA: 0x00207684 File Offset: 0x00205884
		public unsafe float turnSpeed
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(MechSpiderController.NativeFieldInfoPtr_turnSpeed);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(MechSpiderController.NativeFieldInfoPtr_turnSpeed)) = value;
			}
		}

		// Token: 0x04005549 RID: 21833
		private static readonly IntPtr NativeFieldInfoPtr_mechSpider;

		// Token: 0x0400554A RID: 21834
		private static readonly IntPtr NativeFieldInfoPtr_cameraTransform;

		// Token: 0x0400554B RID: 21835
		private static readonly IntPtr NativeFieldInfoPtr_speed;

		// Token: 0x0400554C RID: 21836
		private static readonly IntPtr NativeFieldInfoPtr_turnSpeed;

		// Token: 0x0400554D RID: 21837
		private static readonly IntPtr NativeMethodInfoPtr_get_inputVector_Public_get_Vector3_0;

		// Token: 0x0400554E RID: 21838
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x0400554F RID: 21839
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
