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

// Token: 0x0200022F RID: 559
public class ScriptCameraLookAt : MonoBehaviour
{
	// Token: 0x06005240 RID: 21056 RVA: 0x0014776C File Offset: 0x0014596C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 575650, XrefRangeEnd = 575656, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Update()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ScriptCameraLookAt.NativeMethodInfoPtr_Update_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

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

	// Token: 0x06005242 RID: 21058 RVA: 0x001477FC File Offset: 0x001459FC
	// Note: this type is marked as 'beforefieldinit'.
	static ScriptCameraLookAt()
	{
		Il2CppClassPointerStore<ScriptCameraLookAt>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "ScriptCameraLookAt");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ScriptCameraLookAt>.NativeClassPtr);
		ScriptCameraLookAt.NativeFieldInfoPtr_LookAtTarget = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ScriptCameraLookAt>.NativeClassPtr, "LookAtTarget");
		ScriptCameraLookAt.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ScriptCameraLookAt>.NativeClassPtr, 100668817);
		ScriptCameraLookAt.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ScriptCameraLookAt>.NativeClassPtr, 100668818);
	}

	// Token: 0x06005243 RID: 21059 RVA: 0x0000351C File Offset: 0x0000171C
	public ScriptCameraLookAt(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001D3D RID: 7485
	// (get) Token: 0x06005244 RID: 21060 RVA: 0x00147868 File Offset: 0x00145A68
	// (set) Token: 0x06005245 RID: 21061 RVA: 0x0014789C File Offset: 0x00145A9C
	public unsafe Transform LookAtTarget
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ScriptCameraLookAt.NativeFieldInfoPtr_LookAtTarget);
			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(ScriptCameraLookAt.NativeFieldInfoPtr_LookAtTarget), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04003633 RID: 13875
	private static readonly IntPtr NativeFieldInfoPtr_LookAtTarget;

	// Token: 0x04003634 RID: 13876
	private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

	// Token: 0x04003635 RID: 13877
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
