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

namespace RootMotion
{
	// Token: 0x020003F5 RID: 1013
	public class CameraControllerFPS : MonoBehaviour
	{
		// Token: 0x06007D00 RID: 32000 RVA: 0x001FE324 File Offset: 0x001FC524
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 620795, XrefRangeEnd = 620797, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Awake()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CameraControllerFPS.NativeMethodInfoPtr_Awake_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007D01 RID: 32001 RVA: 0x001FE368 File Offset: 0x001FC568
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 620812, RefRangeEnd = 620813, XrefRangeStart = 620797, XrefRangeEnd = 620812, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void LateUpdate()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CameraControllerFPS.NativeMethodInfoPtr_LateUpdate_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007D02 RID: 32002 RVA: 0x001FE3AC File Offset: 0x001FC5AC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe float ClampAngle(float angle, float min, float max)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref angle;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref min;
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref max;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CameraControllerFPS.NativeMethodInfoPtr_ClampAngle_Private_Single_Single_Single_Single_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

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

		// Token: 0x06007D04 RID: 32004 RVA: 0x001FE480 File Offset: 0x001FC680
		// Note: this type is marked as 'beforefieldinit'.
		static CameraControllerFPS()
		{
			Il2CppClassPointerStore<CameraControllerFPS>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion", "CameraControllerFPS");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<CameraControllerFPS>.NativeClassPtr);
			CameraControllerFPS.NativeFieldInfoPtr_rotationSensitivity = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CameraControllerFPS>.NativeClassPtr, "rotationSensitivity");
			CameraControllerFPS.NativeFieldInfoPtr_yMinLimit = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CameraControllerFPS>.NativeClassPtr, "yMinLimit");
			CameraControllerFPS.NativeFieldInfoPtr_yMaxLimit = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CameraControllerFPS>.NativeClassPtr, "yMaxLimit");
			CameraControllerFPS.NativeFieldInfoPtr_x = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CameraControllerFPS>.NativeClassPtr, "x");
			CameraControllerFPS.NativeFieldInfoPtr_y = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CameraControllerFPS>.NativeClassPtr, "y");
			CameraControllerFPS.NativeMethodInfoPtr_Awake_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CameraControllerFPS>.NativeClassPtr, 100672788);
			CameraControllerFPS.NativeMethodInfoPtr_LateUpdate_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CameraControllerFPS>.NativeClassPtr, 100672789);
			CameraControllerFPS.NativeMethodInfoPtr_ClampAngle_Private_Single_Single_Single_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CameraControllerFPS>.NativeClassPtr, 100672790);
			CameraControllerFPS.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CameraControllerFPS>.NativeClassPtr, 100672791);
		}

		// Token: 0x06007D05 RID: 32005 RVA: 0x0000351C File Offset: 0x0000171C
		public CameraControllerFPS(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002A9A RID: 10906
		// (get) Token: 0x06007D06 RID: 32006 RVA: 0x001FE564 File Offset: 0x001FC764
		// (set) Token: 0x06007D07 RID: 32007 RVA: 0x001FE58C File Offset: 0x001FC78C
		public unsafe float rotationSensitivity
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CameraControllerFPS.NativeFieldInfoPtr_rotationSensitivity);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CameraControllerFPS.NativeFieldInfoPtr_rotationSensitivity)) = value;
			}
		}

		// Token: 0x17002A9B RID: 10907
		// (get) Token: 0x06007D08 RID: 32008 RVA: 0x001FE5B0 File Offset: 0x001FC7B0
		// (set) Token: 0x06007D09 RID: 32009 RVA: 0x001FE5D8 File Offset: 0x001FC7D8
		public unsafe float yMinLimit
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CameraControllerFPS.NativeFieldInfoPtr_yMinLimit);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CameraControllerFPS.NativeFieldInfoPtr_yMinLimit)) = value;
			}
		}

		// Token: 0x17002A9C RID: 10908
		// (get) Token: 0x06007D0A RID: 32010 RVA: 0x001FE5FC File Offset: 0x001FC7FC
		// (set) Token: 0x06007D0B RID: 32011 RVA: 0x001FE624 File Offset: 0x001FC824
		public unsafe float yMaxLimit
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CameraControllerFPS.NativeFieldInfoPtr_yMaxLimit);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CameraControllerFPS.NativeFieldInfoPtr_yMaxLimit)) = value;
			}
		}

		// Token: 0x17002A9D RID: 10909
		// (get) Token: 0x06007D0C RID: 32012 RVA: 0x001FE648 File Offset: 0x001FC848
		// (set) Token: 0x06007D0D RID: 32013 RVA: 0x001FE670 File Offset: 0x001FC870
		public unsafe float x
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CameraControllerFPS.NativeFieldInfoPtr_x);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CameraControllerFPS.NativeFieldInfoPtr_x)) = value;
			}
		}

		// Token: 0x17002A9E RID: 10910
		// (get) Token: 0x06007D0E RID: 32014 RVA: 0x001FE694 File Offset: 0x001FC894
		// (set) Token: 0x06007D0F RID: 32015 RVA: 0x001FE6BC File Offset: 0x001FC8BC
		public unsafe float y
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CameraControllerFPS.NativeFieldInfoPtr_y);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CameraControllerFPS.NativeFieldInfoPtr_y)) = value;
			}
		}

		// Token: 0x040053EB RID: 21483
		private static readonly IntPtr NativeFieldInfoPtr_rotationSensitivity;

		// Token: 0x040053EC RID: 21484
		private static readonly IntPtr NativeFieldInfoPtr_yMinLimit;

		// Token: 0x040053ED RID: 21485
		private static readonly IntPtr NativeFieldInfoPtr_yMaxLimit;

		// Token: 0x040053EE RID: 21486
		private static readonly IntPtr NativeFieldInfoPtr_x;

		// Token: 0x040053EF RID: 21487
		private static readonly IntPtr NativeFieldInfoPtr_y;

		// Token: 0x040053F0 RID: 21488
		private static readonly IntPtr NativeMethodInfoPtr_Awake_Private_Void_0;

		// Token: 0x040053F1 RID: 21489
		private static readonly IntPtr NativeMethodInfoPtr_LateUpdate_Public_Void_0;

		// Token: 0x040053F2 RID: 21490
		private static readonly IntPtr NativeMethodInfoPtr_ClampAngle_Private_Single_Single_Single_Single_0;

		// Token: 0x040053F3 RID: 21491
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
