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

namespace MTAssets.UltimateLODSystem
{
	// Token: 0x02000605 RID: 1541
	public class ChangeLodAutoManagement : MonoBehaviour
	{
		// Token: 0x06009EFC RID: 40700 RVA: 0x0028B25C File Offset: 0x0028945C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 622937, XrefRangeEnd = 622960, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Update()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ChangeLodAutoManagement.NativeMethodInfoPtr_Update_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009EFD RID: 40701 RVA: 0x0028B2A0 File Offset: 0x002894A0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 622960, XrefRangeEnd = 622972, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void buttonEnableAutoManagement()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ChangeLodAutoManagement.NativeMethodInfoPtr_buttonEnableAutoManagement_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009EFE RID: 40702 RVA: 0x0028B2E4 File Offset: 0x002894E4
		[CallerCount(63)]
		[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ChangeLodAutoManagement()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ChangeLodAutoManagement>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ChangeLodAutoManagement.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009EFF RID: 40703 RVA: 0x0028B330 File Offset: 0x00289530
		// Note: this type is marked as 'beforefieldinit'.
		static ChangeLodAutoManagement()
		{
			Il2CppClassPointerStore<ChangeLodAutoManagement>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "MTAssets.UltimateLODSystem", "ChangeLodAutoManagement");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ChangeLodAutoManagement>.NativeClassPtr);
			ChangeLodAutoManagement.NativeFieldInfoPtr_buttonText = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ChangeLodAutoManagement>.NativeClassPtr, "buttonText");
			ChangeLodAutoManagement.NativeFieldInfoPtr_explanation = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ChangeLodAutoManagement>.NativeClassPtr, "explanation");
			ChangeLodAutoManagement.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ChangeLodAutoManagement>.NativeClassPtr, 100675524);
			ChangeLodAutoManagement.NativeMethodInfoPtr_buttonEnableAutoManagement_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ChangeLodAutoManagement>.NativeClassPtr, 100675525);
			ChangeLodAutoManagement.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ChangeLodAutoManagement>.NativeClassPtr, 100675526);
		}

		// Token: 0x06009F00 RID: 40704 RVA: 0x0000351C File Offset: 0x0000171C
		public ChangeLodAutoManagement(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170035F9 RID: 13817
		// (get) Token: 0x06009F01 RID: 40705 RVA: 0x0028B3C4 File Offset: 0x002895C4
		// (set) Token: 0x06009F02 RID: 40706 RVA: 0x0028B3F8 File Offset: 0x002895F8
		public unsafe Text buttonText
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ChangeLodAutoManagement.NativeFieldInfoPtr_buttonText);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Text(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ChangeLodAutoManagement.NativeFieldInfoPtr_buttonText), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x170035FA RID: 13818
		// (get) Token: 0x06009F03 RID: 40707 RVA: 0x0028B420 File Offset: 0x00289620
		// (set) Token: 0x06009F04 RID: 40708 RVA: 0x0028B454 File Offset: 0x00289654
		public unsafe Text explanation
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ChangeLodAutoManagement.NativeFieldInfoPtr_explanation);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Text(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ChangeLodAutoManagement.NativeFieldInfoPtr_explanation), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x04006A7C RID: 27260
		private static readonly IntPtr NativeFieldInfoPtr_buttonText;

		// Token: 0x04006A7D RID: 27261
		private static readonly IntPtr NativeFieldInfoPtr_explanation;

		// Token: 0x04006A7E RID: 27262
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x04006A7F RID: 27263
		private static readonly IntPtr NativeMethodInfoPtr_buttonEnableAutoManagement_Public_Void_0;

		// Token: 0x04006A80 RID: 27264
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
