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

namespace RootMotion.Demos
{
	// Token: 0x02000415 RID: 1045
	public class MechSpiderParticles : MonoBehaviour
	{
		// Token: 0x06007F27 RID: 32551 RVA: 0x00208524 File Offset: 0x00206724
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 623927, XrefRangeEnd = 623938, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Start()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(MechSpiderParticles.NativeMethodInfoPtr_Start_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007F28 RID: 32552 RVA: 0x00208568 File Offset: 0x00206768
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 623938, XrefRangeEnd = 623963, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Update()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(MechSpiderParticles.NativeMethodInfoPtr_Update_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

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

		// Token: 0x06007F2A RID: 32554 RVA: 0x002085F8 File Offset: 0x002067F8
		// Note: this type is marked as 'beforefieldinit'.
		static MechSpiderParticles()
		{
			Il2CppClassPointerStore<MechSpiderParticles>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.Demos", "MechSpiderParticles");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<MechSpiderParticles>.NativeClassPtr);
			MechSpiderParticles.NativeFieldInfoPtr_mechSpiderController = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<MechSpiderParticles>.NativeClassPtr, "mechSpiderController");
			MechSpiderParticles.NativeFieldInfoPtr_particles = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<MechSpiderParticles>.NativeClassPtr, "particles");
			MechSpiderParticles.NativeMethodInfoPtr_Start_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MechSpiderParticles>.NativeClassPtr, 100672994);
			MechSpiderParticles.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MechSpiderParticles>.NativeClassPtr, 100672995);
			MechSpiderParticles.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MechSpiderParticles>.NativeClassPtr, 100672996);
		}

		// Token: 0x06007F2B RID: 32555 RVA: 0x0000351C File Offset: 0x0000171C
		public MechSpiderParticles(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002B33 RID: 11059
		// (get) Token: 0x06007F2C RID: 32556 RVA: 0x0020868C File Offset: 0x0020688C
		// (set) Token: 0x06007F2D RID: 32557 RVA: 0x002086C0 File Offset: 0x002068C0
		public unsafe MechSpiderController mechSpiderController
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(MechSpiderParticles.NativeFieldInfoPtr_mechSpiderController);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new MechSpiderController(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(MechSpiderParticles.NativeFieldInfoPtr_mechSpiderController), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17002B34 RID: 11060
		// (get) Token: 0x06007F2E RID: 32558 RVA: 0x002086E8 File Offset: 0x002068E8
		// (set) Token: 0x06007F2F RID: 32559 RVA: 0x0020871C File Offset: 0x0020691C
		public unsafe ParticleSystem particles
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(MechSpiderParticles.NativeFieldInfoPtr_particles);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new ParticleSystem(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(MechSpiderParticles.NativeFieldInfoPtr_particles), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x04005573 RID: 21875
		private static readonly IntPtr NativeFieldInfoPtr_mechSpiderController;

		// Token: 0x04005574 RID: 21876
		private static readonly IntPtr NativeFieldInfoPtr_particles;

		// Token: 0x04005575 RID: 21877
		private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;

		// Token: 0x04005576 RID: 21878
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x04005577 RID: 21879
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
