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

namespace RootMotion.Demos
{
	// Token: 0x02000456 RID: 1110
	public class SlowMo : MonoBehaviour
	{
		// Token: 0x06008393 RID: 33683 RVA: 0x00218AC8 File Offset: 0x00216CC8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 626253, XrefRangeEnd = 626262, 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: 0x06008394 RID: 33684 RVA: 0x00218B0C File Offset: 0x00216D0C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 626262, XrefRangeEnd = 626266, 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: 0x06008395 RID: 33685 RVA: 0x00218B5C File Offset: 0x00216D5C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 626266, XrefRangeEnd = 626267, 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: 0x06008396 RID: 33686 RVA: 0x00218BA8 File Offset: 0x00216DA8
		// 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, 100673253);
			SlowMo.NativeMethodInfoPtr_IsSlowMotion_Private_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SlowMo>.NativeClassPtr, 100673254);
			SlowMo.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SlowMo>.NativeClassPtr, 100673255);
		}

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

		// Token: 0x17002CB9 RID: 11449
		// (get) Token: 0x06008398 RID: 33688 RVA: 0x00218C64 File Offset: 0x00216E64
		// (set) Token: 0x06008399 RID: 33689 RVA: 0x00218C98 File Offset: 0x00216E98
		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: 0x17002CBA RID: 11450
		// (get) Token: 0x0600839A RID: 33690 RVA: 0x00218CC0 File Offset: 0x00216EC0
		// (set) Token: 0x0600839B RID: 33691 RVA: 0x00218CE8 File Offset: 0x00216EE8
		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: 0x17002CBB RID: 11451
		// (get) Token: 0x0600839C RID: 33692 RVA: 0x00218D0C File Offset: 0x00216F0C
		// (set) Token: 0x0600839D RID: 33693 RVA: 0x00218D34 File Offset: 0x00216F34
		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: 0x17002CBC RID: 11452
		// (get) Token: 0x0600839E RID: 33694 RVA: 0x00218D58 File Offset: 0x00216F58
		// (set) Token: 0x0600839F RID: 33695 RVA: 0x00218D80 File Offset: 0x00216F80
		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: 0x0400580B RID: 22539
		private static readonly IntPtr NativeFieldInfoPtr_keyCodes;

		// Token: 0x0400580C RID: 22540
		private static readonly IntPtr NativeFieldInfoPtr_mouse0;

		// Token: 0x0400580D RID: 22541
		private static readonly IntPtr NativeFieldInfoPtr_mouse1;

		// Token: 0x0400580E RID: 22542
		private static readonly IntPtr NativeFieldInfoPtr_slowMoTimeScale;

		// Token: 0x0400580F RID: 22543
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x04005810 RID: 22544
		private static readonly IntPtr NativeMethodInfoPtr_IsSlowMotion_Private_Boolean_0;

		// Token: 0x04005811 RID: 22545
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
