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

// Token: 0x020003AC RID: 940
public class Portal : MonoBehaviour
{
	// Token: 0x06007915 RID: 30997 RVA: 0x001EC434 File Offset: 0x001EA634
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 617388, XrefRangeEnd = 617404, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void OnTriggerEnter(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(Portal.NativeMethodInfoPtr_OnTriggerEnter_Public_Void_Collider_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

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

	// Token: 0x06007917 RID: 30999 RVA: 0x001EC4DC File Offset: 0x001EA6DC
	// Note: this type is marked as 'beforefieldinit'.
	static Portal()
	{
		Il2CppClassPointerStore<Portal>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "Portal");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<Portal>.NativeClassPtr);
		Portal.NativeFieldInfoPtr_PortalEndPoint = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Portal>.NativeClassPtr, "PortalEndPoint");
		Portal.NativeMethodInfoPtr_OnTriggerEnter_Public_Void_Collider_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Portal>.NativeClassPtr, 100672392);
		Portal.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Portal>.NativeClassPtr, 100672393);
	}

	// Token: 0x06007918 RID: 31000 RVA: 0x0000351C File Offset: 0x0000171C
	public Portal(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17002985 RID: 10629
	// (get) Token: 0x06007919 RID: 31001 RVA: 0x001EC548 File Offset: 0x001EA748
	// (set) Token: 0x0600791A RID: 31002 RVA: 0x001EC57C File Offset: 0x001EA77C
	public unsafe Transform PortalEndPoint
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Portal.NativeFieldInfoPtr_PortalEndPoint);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Transform(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(Portal.NativeFieldInfoPtr_PortalEndPoint), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04005076 RID: 20598
	private static readonly IntPtr NativeFieldInfoPtr_PortalEndPoint;

	// Token: 0x04005077 RID: 20599
	private static readonly IntPtr NativeMethodInfoPtr_OnTriggerEnter_Public_Void_Collider_0;

	// Token: 0x04005078 RID: 20600
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
