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

namespace RootMotion.Demos
{
	// Token: 0x02000426 RID: 1062
	public class HitReactionTrigger : MonoBehaviour
	{
		// Token: 0x06008050 RID: 32848 RVA: 0x0020C8CC File Offset: 0x0020AACC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 624585, XrefRangeEnd = 624597, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Update()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(HitReactionTrigger.NativeMethodInfoPtr_Update_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008051 RID: 32849 RVA: 0x0020C910 File Offset: 0x0020AB10
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 624597, XrefRangeEnd = 624612, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnGUI()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(HitReactionTrigger.NativeMethodInfoPtr_OnGUI_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008052 RID: 32850 RVA: 0x0020C954 File Offset: 0x0020AB54
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 541431, RefRangeEnd = 541432, XrefRangeStart = 541431, XrefRangeEnd = 541432, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe HitReactionTrigger()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<HitReactionTrigger>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(HitReactionTrigger.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008053 RID: 32851 RVA: 0x0020C9A0 File Offset: 0x0020ABA0
		// Note: this type is marked as 'beforefieldinit'.
		static HitReactionTrigger()
		{
			Il2CppClassPointerStore<HitReactionTrigger>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.Demos", "HitReactionTrigger");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<HitReactionTrigger>.NativeClassPtr);
			HitReactionTrigger.NativeFieldInfoPtr_hitReaction = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<HitReactionTrigger>.NativeClassPtr, "hitReaction");
			HitReactionTrigger.NativeFieldInfoPtr_hitForce = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<HitReactionTrigger>.NativeClassPtr, "hitForce");
			HitReactionTrigger.NativeFieldInfoPtr_colliderName = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<HitReactionTrigger>.NativeClassPtr, "colliderName");
			HitReactionTrigger.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<HitReactionTrigger>.NativeClassPtr, 100673058);
			HitReactionTrigger.NativeMethodInfoPtr_OnGUI_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<HitReactionTrigger>.NativeClassPtr, 100673059);
			HitReactionTrigger.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<HitReactionTrigger>.NativeClassPtr, 100673060);
		}

		// Token: 0x06008054 RID: 32852 RVA: 0x0000351C File Offset: 0x0000171C
		public HitReactionTrigger(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002B99 RID: 11161
		// (get) Token: 0x06008055 RID: 32853 RVA: 0x0020CA48 File Offset: 0x0020AC48
		// (set) Token: 0x06008056 RID: 32854 RVA: 0x0020CA7C File Offset: 0x0020AC7C
		public unsafe HitReaction hitReaction
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(HitReactionTrigger.NativeFieldInfoPtr_hitReaction);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new HitReaction(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(HitReactionTrigger.NativeFieldInfoPtr_hitReaction), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17002B9A RID: 11162
		// (get) Token: 0x06008057 RID: 32855 RVA: 0x0020CAA4 File Offset: 0x0020ACA4
		// (set) Token: 0x06008058 RID: 32856 RVA: 0x0020CACC File Offset: 0x0020ACCC
		public unsafe float hitForce
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(HitReactionTrigger.NativeFieldInfoPtr_hitForce);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(HitReactionTrigger.NativeFieldInfoPtr_hitForce)) = value;
			}
		}

		// Token: 0x17002B9B RID: 11163
		// (get) Token: 0x06008059 RID: 32857 RVA: 0x0020CAF0 File Offset: 0x0020ACF0
		// (set) Token: 0x0600805A RID: 32858 RVA: 0x0020CB19 File Offset: 0x0020AD19
		public unsafe string colliderName
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(HitReactionTrigger.NativeFieldInfoPtr_colliderName);
				return IL2CPP.Il2CppStringToManaged(*intPtr);
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(HitReactionTrigger.NativeFieldInfoPtr_colliderName), IL2CPP.ManagedStringToIl2Cpp(value));
			}
		}

		// Token: 0x0400561A RID: 22042
		private static readonly IntPtr NativeFieldInfoPtr_hitReaction;

		// Token: 0x0400561B RID: 22043
		private static readonly IntPtr NativeFieldInfoPtr_hitForce;

		// Token: 0x0400561C RID: 22044
		private static readonly IntPtr NativeFieldInfoPtr_colliderName;

		// Token: 0x0400561D RID: 22045
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x0400561E RID: 22046
		private static readonly IntPtr NativeMethodInfoPtr_OnGUI_Private_Void_0;

		// Token: 0x0400561F RID: 22047
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
