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

namespace RootMotion.Demos
{
	// Token: 0x02000425 RID: 1061
	public class FPSCharacter : MonoBehaviour
	{
		// Token: 0x06008042 RID: 32834 RVA: 0x0020C594 File Offset: 0x0020A794
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 624562, XrefRangeEnd = 624570, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Start()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FPSCharacter.NativeMethodInfoPtr_Start_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008043 RID: 32835 RVA: 0x0020C5D8 File Offset: 0x0020A7D8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 624570, XrefRangeEnd = 624577, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Update()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FPSCharacter.NativeMethodInfoPtr_Update_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008044 RID: 32836 RVA: 0x0020C61C File Offset: 0x0020A81C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 624577, XrefRangeEnd = 624585, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnGUI()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FPSCharacter.NativeMethodInfoPtr_OnGUI_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

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

		// Token: 0x06008046 RID: 32838 RVA: 0x0020C6AC File Offset: 0x0020A8AC
		// Note: this type is marked as 'beforefieldinit'.
		static FPSCharacter()
		{
			Il2CppClassPointerStore<FPSCharacter>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.Demos", "FPSCharacter");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<FPSCharacter>.NativeClassPtr);
			FPSCharacter.NativeFieldInfoPtr_walkSpeed = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FPSCharacter>.NativeClassPtr, "walkSpeed");
			FPSCharacter.NativeFieldInfoPtr_sVel = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FPSCharacter>.NativeClassPtr, "sVel");
			FPSCharacter.NativeFieldInfoPtr_animator = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FPSCharacter>.NativeClassPtr, "animator");
			FPSCharacter.NativeFieldInfoPtr_FPSAiming = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FPSCharacter>.NativeClassPtr, "FPSAiming");
			FPSCharacter.NativeMethodInfoPtr_Start_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FPSCharacter>.NativeClassPtr, 100673054);
			FPSCharacter.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FPSCharacter>.NativeClassPtr, 100673055);
			FPSCharacter.NativeMethodInfoPtr_OnGUI_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FPSCharacter>.NativeClassPtr, 100673056);
			FPSCharacter.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FPSCharacter>.NativeClassPtr, 100673057);
		}

		// Token: 0x06008047 RID: 32839 RVA: 0x0000351C File Offset: 0x0000171C
		public FPSCharacter(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002B95 RID: 11157
		// (get) Token: 0x06008048 RID: 32840 RVA: 0x0020C77C File Offset: 0x0020A97C
		// (set) Token: 0x06008049 RID: 32841 RVA: 0x0020C7A4 File Offset: 0x0020A9A4
		public unsafe float walkSpeed
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FPSCharacter.NativeFieldInfoPtr_walkSpeed);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FPSCharacter.NativeFieldInfoPtr_walkSpeed)) = value;
			}
		}

		// Token: 0x17002B96 RID: 11158
		// (get) Token: 0x0600804A RID: 32842 RVA: 0x0020C7C8 File Offset: 0x0020A9C8
		// (set) Token: 0x0600804B RID: 32843 RVA: 0x0020C7F0 File Offset: 0x0020A9F0
		public unsafe float sVel
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FPSCharacter.NativeFieldInfoPtr_sVel);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FPSCharacter.NativeFieldInfoPtr_sVel)) = value;
			}
		}

		// Token: 0x17002B97 RID: 11159
		// (get) Token: 0x0600804C RID: 32844 RVA: 0x0020C814 File Offset: 0x0020AA14
		// (set) Token: 0x0600804D RID: 32845 RVA: 0x0020C848 File Offset: 0x0020AA48
		public unsafe Animator animator
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FPSCharacter.NativeFieldInfoPtr_animator);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Animator(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(FPSCharacter.NativeFieldInfoPtr_animator), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17002B98 RID: 11160
		// (get) Token: 0x0600804E RID: 32846 RVA: 0x0020C870 File Offset: 0x0020AA70
		// (set) Token: 0x0600804F RID: 32847 RVA: 0x0020C8A4 File Offset: 0x0020AAA4
		public unsafe FPSAiming FPSAiming
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(FPSCharacter.NativeFieldInfoPtr_FPSAiming);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new FPSAiming(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(FPSCharacter.NativeFieldInfoPtr_FPSAiming), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x04005612 RID: 22034
		private static readonly IntPtr NativeFieldInfoPtr_walkSpeed;

		// Token: 0x04005613 RID: 22035
		private static readonly IntPtr NativeFieldInfoPtr_sVel;

		// Token: 0x04005614 RID: 22036
		private static readonly IntPtr NativeFieldInfoPtr_animator;

		// Token: 0x04005615 RID: 22037
		private static readonly IntPtr NativeFieldInfoPtr_FPSAiming;

		// Token: 0x04005616 RID: 22038
		private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;

		// Token: 0x04005617 RID: 22039
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x04005618 RID: 22040
		private static readonly IntPtr NativeMethodInfoPtr_OnGUI_Private_Void_0;

		// Token: 0x04005619 RID: 22041
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
