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

namespace RootMotion.Demos
{
	// Token: 0x020003BA RID: 954
	public class MechSpiderController : MonoBehaviour
	{
		// Token: 0x1700287E RID: 10366
		// (get) Token: 0x0600768B RID: 30347 RVA: 0x001E4680 File Offset: 0x001E2880
		public unsafe Vector3 inputVector
		{
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 591512, XrefRangeEnd = 591518, 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: 0x0600768C RID: 30348 RVA: 0x001E46D0 File Offset: 0x001E28D0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 591518, XrefRangeEnd = 591542, 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: 0x0600768D RID: 30349 RVA: 0x001E4714 File Offset: 0x001E2914
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 591542, XrefRangeEnd = 591543, 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: 0x0600768E RID: 30350 RVA: 0x001E4760 File Offset: 0x001E2960
		// 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, 100672264);
			MechSpiderController.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MechSpiderController>.NativeClassPtr, 100672265);
			MechSpiderController.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MechSpiderController>.NativeClassPtr, 100672266);
		}

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

		// Token: 0x1700287A RID: 10362
		// (get) Token: 0x06007690 RID: 30352 RVA: 0x001E481C File Offset: 0x001E2A1C
		// (set) Token: 0x06007691 RID: 30353 RVA: 0x001E4850 File Offset: 0x001E2A50
		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: 0x1700287B RID: 10363
		// (get) Token: 0x06007692 RID: 30354 RVA: 0x001E4878 File Offset: 0x001E2A78
		// (set) Token: 0x06007693 RID: 30355 RVA: 0x001E48AC File Offset: 0x001E2AAC
		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: 0x1700287C RID: 10364
		// (get) Token: 0x06007694 RID: 30356 RVA: 0x001E48D4 File Offset: 0x001E2AD4
		// (set) Token: 0x06007695 RID: 30357 RVA: 0x001E48FC File Offset: 0x001E2AFC
		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: 0x1700287D RID: 10365
		// (get) Token: 0x06007696 RID: 30358 RVA: 0x001E4920 File Offset: 0x001E2B20
		// (set) Token: 0x06007697 RID: 30359 RVA: 0x001E4948 File Offset: 0x001E2B48
		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: 0x04004FA0 RID: 20384
		private static readonly IntPtr NativeFieldInfoPtr_mechSpider;

		// Token: 0x04004FA1 RID: 20385
		private static readonly IntPtr NativeFieldInfoPtr_cameraTransform;

		// Token: 0x04004FA2 RID: 20386
		private static readonly IntPtr NativeFieldInfoPtr_speed;

		// Token: 0x04004FA3 RID: 20387
		private static readonly IntPtr NativeFieldInfoPtr_turnSpeed;

		// Token: 0x04004FA4 RID: 20388
		private static readonly IntPtr NativeMethodInfoPtr_get_inputVector_Public_get_Vector3_0;

		// Token: 0x04004FA5 RID: 20389
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x04004FA6 RID: 20390
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
