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

namespace RootMotion.Demos
{
	// Token: 0x02000442 RID: 1090
	public class GrounderDemo : MonoBehaviour
	{
		// Token: 0x06008215 RID: 33301 RVA: 0x00213268 File Offset: 0x00211468
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 625503, XrefRangeEnd = 625528, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnGUI()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GrounderDemo.NativeMethodInfoPtr_OnGUI_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008216 RID: 33302 RVA: 0x002132AC File Offset: 0x002114AC
		[CallerCount(4)]
		[CachedScanResults(RefRangeStart = 625530, RefRangeEnd = 625534, XrefRangeStart = 625528, XrefRangeEnd = 625530, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Activate(int index)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref index;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GrounderDemo.NativeMethodInfoPtr_Activate_Public_Void_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06008217 RID: 33303 RVA: 0x00213300 File Offset: 0x00211500
		[CallerCount(67)]
		[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe GrounderDemo()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<GrounderDemo>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GrounderDemo.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008218 RID: 33304 RVA: 0x0021334C File Offset: 0x0021154C
		// Note: this type is marked as 'beforefieldinit'.
		static GrounderDemo()
		{
			Il2CppClassPointerStore<GrounderDemo>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.Demos", "GrounderDemo");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<GrounderDemo>.NativeClassPtr);
			GrounderDemo.NativeFieldInfoPtr_characters = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GrounderDemo>.NativeClassPtr, "characters");
			GrounderDemo.NativeMethodInfoPtr_OnGUI_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GrounderDemo>.NativeClassPtr, 100673167);
			GrounderDemo.NativeMethodInfoPtr_Activate_Public_Void_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GrounderDemo>.NativeClassPtr, 100673168);
			GrounderDemo.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GrounderDemo>.NativeClassPtr, 100673169);
		}

		// Token: 0x06008219 RID: 33305 RVA: 0x0000351C File Offset: 0x0000171C
		public GrounderDemo(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002C31 RID: 11313
		// (get) Token: 0x0600821A RID: 33306 RVA: 0x002133CC File Offset: 0x002115CC
		// (set) Token: 0x0600821B RID: 33307 RVA: 0x00213400 File Offset: 0x00211600
		public unsafe Il2CppReferenceArray<GameObject> characters
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GrounderDemo.NativeFieldInfoPtr_characters);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Il2CppReferenceArray<GameObject>(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(GrounderDemo.NativeFieldInfoPtr_characters), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x04005717 RID: 22295
		private static readonly IntPtr NativeFieldInfoPtr_characters;

		// Token: 0x04005718 RID: 22296
		private static readonly IntPtr NativeMethodInfoPtr_OnGUI_Private_Void_0;

		// Token: 0x04005719 RID: 22297
		private static readonly IntPtr NativeMethodInfoPtr_Activate_Public_Void_Int32_0;

		// Token: 0x0400571A RID: 22298
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
