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

namespace RootMotion.Demos
{
	// Token: 0x020003FE RID: 1022
	public class SlowMo : MonoBehaviour
	{
		// Token: 0x06007B40 RID: 31552 RVA: 0x001F5D8C File Offset: 0x001F3F8C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 593939, XrefRangeEnd = 593948, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Update()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(SlowMo.NativeMethodInfoPtr_Update_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007B41 RID: 31553 RVA: 0x001F5DD0 File Offset: 0x001F3FD0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 593948, XrefRangeEnd = 593952, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe bool IsSlowMotion()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(SlowMo.NativeMethodInfoPtr_IsSlowMotion_Private_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

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

		// Token: 0x06007B43 RID: 31555 RVA: 0x001F5E6C File Offset: 0x001F406C
		// Note: this type is marked as 'beforefieldinit'.
		static SlowMo()
		{
			Il2CppClassPointerStore<SlowMo>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.Demos", "SlowMo");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<SlowMo>.NativeClassPtr);
			SlowMo.NativeFieldInfoPtr_keyCodes = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SlowMo>.NativeClassPtr, "keyCodes");
			SlowMo.NativeFieldInfoPtr_mouse0 = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SlowMo>.NativeClassPtr, "mouse0");
			SlowMo.NativeFieldInfoPtr_mouse1 = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SlowMo>.NativeClassPtr, "mouse1");
			SlowMo.NativeFieldInfoPtr_slowMoTimeScale = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SlowMo>.NativeClassPtr, "slowMoTimeScale");
			SlowMo.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SlowMo>.NativeClassPtr, 100672540);
			SlowMo.NativeMethodInfoPtr_IsSlowMotion_Private_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SlowMo>.NativeClassPtr, 100672541);
			SlowMo.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SlowMo>.NativeClassPtr, 100672542);
		}

		// Token: 0x06007B44 RID: 31556 RVA: 0x0000351C File Offset: 0x0000171C
		public SlowMo(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002A1E RID: 10782
		// (get) Token: 0x06007B45 RID: 31557 RVA: 0x001F5F28 File Offset: 0x001F4128
		// (set) Token: 0x06007B46 RID: 31558 RVA: 0x001F5F5C File Offset: 0x001F415C
		public unsafe Il2CppStructArray<KeyCode> keyCodes
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SlowMo.NativeFieldInfoPtr_keyCodes);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Il2CppStructArray<KeyCode>(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(SlowMo.NativeFieldInfoPtr_keyCodes), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17002A1F RID: 10783
		// (get) Token: 0x06007B47 RID: 31559 RVA: 0x001F5F84 File Offset: 0x001F4184
		// (set) Token: 0x06007B48 RID: 31560 RVA: 0x001F5FAC File Offset: 0x001F41AC
		public unsafe bool mouse0
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SlowMo.NativeFieldInfoPtr_mouse0);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SlowMo.NativeFieldInfoPtr_mouse0)) = value;
			}
		}

		// Token: 0x17002A20 RID: 10784
		// (get) Token: 0x06007B49 RID: 31561 RVA: 0x001F5FD0 File Offset: 0x001F41D0
		// (set) Token: 0x06007B4A RID: 31562 RVA: 0x001F5FF8 File Offset: 0x001F41F8
		public unsafe bool mouse1
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SlowMo.NativeFieldInfoPtr_mouse1);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SlowMo.NativeFieldInfoPtr_mouse1)) = value;
			}
		}

		// Token: 0x17002A21 RID: 10785
		// (get) Token: 0x06007B4B RID: 31563 RVA: 0x001F601C File Offset: 0x001F421C
		// (set) Token: 0x06007B4C RID: 31564 RVA: 0x001F6044 File Offset: 0x001F4244
		public unsafe float slowMoTimeScale
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SlowMo.NativeFieldInfoPtr_slowMoTimeScale);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SlowMo.NativeFieldInfoPtr_slowMoTimeScale)) = value;
			}
		}

		// Token: 0x04005262 RID: 21090
		private static readonly IntPtr NativeFieldInfoPtr_keyCodes;

		// Token: 0x04005263 RID: 21091
		private static readonly IntPtr NativeFieldInfoPtr_mouse0;

		// Token: 0x04005264 RID: 21092
		private static readonly IntPtr NativeFieldInfoPtr_mouse1;

		// Token: 0x04005265 RID: 21093
		private static readonly IntPtr NativeFieldInfoPtr_slowMoTimeScale;

		// Token: 0x04005266 RID: 21094
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x04005267 RID: 21095
		private static readonly IntPtr NativeMethodInfoPtr_IsSlowMotion_Private_Boolean_0;

		// Token: 0x04005268 RID: 21096
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
