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

namespace RootMotion.Demos
{
	// Token: 0x020003BD RID: 957
	public class MechSpiderParticles : MonoBehaviour
	{
		// Token: 0x060076D4 RID: 30420 RVA: 0x001E57E8 File Offset: 0x001E39E8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 591622, XrefRangeEnd = 591633, 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: 0x060076D5 RID: 30421 RVA: 0x001E582C File Offset: 0x001E3A2C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 591633, XrefRangeEnd = 591658, 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: 0x060076D6 RID: 30422 RVA: 0x001E5870 File Offset: 0x001E3A70
		[CallerCount(63)]
		[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, 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: 0x060076D7 RID: 30423 RVA: 0x001E58BC File Offset: 0x001E3ABC
		// 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, 100672281);
			MechSpiderParticles.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MechSpiderParticles>.NativeClassPtr, 100672282);
			MechSpiderParticles.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MechSpiderParticles>.NativeClassPtr, 100672283);
		}

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

		// Token: 0x17002898 RID: 10392
		// (get) Token: 0x060076D9 RID: 30425 RVA: 0x001E5950 File Offset: 0x001E3B50
		// (set) Token: 0x060076DA RID: 30426 RVA: 0x001E5984 File Offset: 0x001E3B84
		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: 0x17002899 RID: 10393
		// (get) Token: 0x060076DB RID: 30427 RVA: 0x001E59AC File Offset: 0x001E3BAC
		// (set) Token: 0x060076DC RID: 30428 RVA: 0x001E59E0 File Offset: 0x001E3BE0
		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: 0x04004FCA RID: 20426
		private static readonly IntPtr NativeFieldInfoPtr_mechSpiderController;

		// Token: 0x04004FCB RID: 20427
		private static readonly IntPtr NativeFieldInfoPtr_particles;

		// Token: 0x04004FCC RID: 20428
		private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;

		// Token: 0x04004FCD RID: 20429
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x04004FCE RID: 20430
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
