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

// Token: 0x020001F2 RID: 498
public class ScriptCameraLookAt : MonoBehaviour
{
	// Token: 0x06004D0F RID: 19727 RVA: 0x00131F4C File Offset: 0x0013014C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 547567, XrefRangeEnd = 547573, 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: 0x06004D10 RID: 19728 RVA: 0x00131F90 File Offset: 0x00130190
	[CallerCount(63)]
	[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, 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: 0x06004D11 RID: 19729 RVA: 0x00131FDC File Offset: 0x001301DC
	// 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, 100668380);
		ScriptCameraLookAt.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ScriptCameraLookAt>.NativeClassPtr, 100668381);
	}

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

	// Token: 0x17001BBA RID: 7098
	// (get) Token: 0x06004D13 RID: 19731 RVA: 0x00132048 File Offset: 0x00130248
	// (set) Token: 0x06004D14 RID: 19732 RVA: 0x0013207C File Offset: 0x0013027C
	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: 0x040032B2 RID: 12978
	private static readonly IntPtr NativeFieldInfoPtr_LookAtTarget;

	// Token: 0x040032B3 RID: 12979
	private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

	// Token: 0x040032B4 RID: 12980
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
