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

// Token: 0x020001D5 RID: 469
public class SetSkyBox : SceneEvent
{
	// Token: 0x06004B1D RID: 19229 RVA: 0x0012AA3C File Offset: 0x00128C3C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 545796, XrefRangeEnd = 545798, 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: 0x06004B1E RID: 19230 RVA: 0x0012AA8C File Offset: 0x00128C8C
	[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: 0x06004B1F RID: 19231 RVA: 0x0012AAF0 File Offset: 0x00128CF0
	[CallerCount(5)]
	[CachedScanResults(RefRangeStart = 541882, RefRangeEnd = 541887, XrefRangeStart = 541882, XrefRangeEnd = 541887, 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: 0x06004B20 RID: 19232 RVA: 0x0012AB3C File Offset: 0x00128D3C
	// 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, 100668262);
		SetSkyBox.NativeMethodInfoPtr_OnTriggerExit_Protected_Virtual_Void_Collider_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SetSkyBox>.NativeClassPtr, 100668263);
		SetSkyBox.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SetSkyBox>.NativeClassPtr, 100668264);
	}

	// Token: 0x06004B21 RID: 19233 RVA: 0x00117370 File Offset: 0x00115570
	public SetSkyBox(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001B19 RID: 6937
	// (get) Token: 0x06004B22 RID: 19234 RVA: 0x0012ABBC File Offset: 0x00128DBC
	// (set) Token: 0x06004B23 RID: 19235 RVA: 0x0012ABF0 File Offset: 0x00128DF0
	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: 0x0400319B RID: 12699
	private static readonly IntPtr NativeFieldInfoPtr_SkyBox;

	// Token: 0x0400319C RID: 12700
	private static readonly IntPtr NativeMethodInfoPtr_OpenEvent_Public_Virtual_Void_0;

	// Token: 0x0400319D RID: 12701
	private static readonly IntPtr NativeMethodInfoPtr_OnTriggerExit_Protected_Virtual_Void_Collider_0;

	// Token: 0x0400319E RID: 12702
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
