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

// Token: 0x02000212 RID: 530
public class SetSkyBox : SceneEvent
{
	// Token: 0x0600504D RID: 20557 RVA: 0x001401E8 File Offset: 0x0013E3E8
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 573895, XrefRangeEnd = 573897, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void OpenEvent()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), SetSkyBox.NativeMethodInfoPtr_OpenEvent_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x0600504E RID: 20558 RVA: 0x00140238 File Offset: 0x0013E438
	[CallerCount(0)]
	public unsafe override void OnTriggerExit(Collider other)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(other);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), SetSkyBox.NativeMethodInfoPtr_OnTriggerExit_Protected_Virtual_Void_Collider_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x0600504F RID: 20559 RVA: 0x0014029C File Offset: 0x0013E49C
	[CallerCount(5)]
	[CachedScanResults(RefRangeStart = 569315, RefRangeEnd = 569320, XrefRangeStart = 569315, XrefRangeEnd = 569320, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe SetSkyBox()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<SetSkyBox>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(SetSkyBox.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06005050 RID: 20560 RVA: 0x001402E8 File Offset: 0x0013E4E8
	// Note: this type is marked as 'beforefieldinit'.
	static SetSkyBox()
	{
		Il2CppClassPointerStore<SetSkyBox>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "SetSkyBox");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<SetSkyBox>.NativeClassPtr);
		SetSkyBox.NativeFieldInfoPtr_SkyBox = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SetSkyBox>.NativeClassPtr, "SkyBox");
		SetSkyBox.NativeMethodInfoPtr_OpenEvent_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SetSkyBox>.NativeClassPtr, 100668698);
		SetSkyBox.NativeMethodInfoPtr_OnTriggerExit_Protected_Virtual_Void_Collider_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SetSkyBox>.NativeClassPtr, 100668699);
		SetSkyBox.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SetSkyBox>.NativeClassPtr, 100668700);
	}

	// Token: 0x06005051 RID: 20561 RVA: 0x0012A4E8 File Offset: 0x001286E8
	public SetSkyBox(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001C9C RID: 7324
	// (get) Token: 0x06005052 RID: 20562 RVA: 0x00140368 File Offset: 0x0013E568
	// (set) Token: 0x06005053 RID: 20563 RVA: 0x0014039C File Offset: 0x0013E59C
	public unsafe Material SkyBox
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SetSkyBox.NativeFieldInfoPtr_SkyBox);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Material(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(SetSkyBox.NativeFieldInfoPtr_SkyBox), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x0400351B RID: 13595
	private static readonly IntPtr NativeFieldInfoPtr_SkyBox;

	// Token: 0x0400351C RID: 13596
	private static readonly IntPtr NativeMethodInfoPtr_OpenEvent_Public_Virtual_Void_0;

	// Token: 0x0400351D RID: 13597
	private static readonly IntPtr NativeMethodInfoPtr_OnTriggerExit_Protected_Virtual_Void_Collider_0;

	// Token: 0x0400351E RID: 13598
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
