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

namespace RootMotion.Demos
{
	// Token: 0x020003CE RID: 974
	public class HitReactionTrigger : MonoBehaviour
	{
		// Token: 0x060077FD RID: 30717 RVA: 0x001E9B90 File Offset: 0x001E7D90
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 592279, XrefRangeEnd = 592291, 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: 0x060077FE RID: 30718 RVA: 0x001E9BD4 File Offset: 0x001E7DD4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 592291, XrefRangeEnd = 592306, 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: 0x060077FF RID: 30719 RVA: 0x001E9C18 File Offset: 0x001E7E18
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 516526, RefRangeEnd = 516527, XrefRangeStart = 516526, XrefRangeEnd = 516527, 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: 0x06007800 RID: 30720 RVA: 0x001E9C64 File Offset: 0x001E7E64
		// 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, 100672345);
			HitReactionTrigger.NativeMethodInfoPtr_OnGUI_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<HitReactionTrigger>.NativeClassPtr, 100672346);
			HitReactionTrigger.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<HitReactionTrigger>.NativeClassPtr, 100672347);
		}

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

		// Token: 0x170028FE RID: 10494
		// (get) Token: 0x06007802 RID: 30722 RVA: 0x001E9D0C File Offset: 0x001E7F0C
		// (set) Token: 0x06007803 RID: 30723 RVA: 0x001E9D40 File Offset: 0x001E7F40
		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: 0x170028FF RID: 10495
		// (get) Token: 0x06007804 RID: 30724 RVA: 0x001E9D68 File Offset: 0x001E7F68
		// (set) Token: 0x06007805 RID: 30725 RVA: 0x001E9D90 File Offset: 0x001E7F90
		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: 0x17002900 RID: 10496
		// (get) Token: 0x06007806 RID: 30726 RVA: 0x001E9DB4 File Offset: 0x001E7FB4
		// (set) Token: 0x06007807 RID: 30727 RVA: 0x001E9DDD File Offset: 0x001E7FDD
		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: 0x04005071 RID: 20593
		private static readonly IntPtr NativeFieldInfoPtr_hitReaction;

		// Token: 0x04005072 RID: 20594
		private static readonly IntPtr NativeFieldInfoPtr_hitForce;

		// Token: 0x04005073 RID: 20595
		private static readonly IntPtr NativeFieldInfoPtr_colliderName;

		// Token: 0x04005074 RID: 20596
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x04005075 RID: 20597
		private static readonly IntPtr NativeMethodInfoPtr_OnGUI_Private_Void_0;

		// Token: 0x04005076 RID: 20598
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
