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

// Token: 0x02000337 RID: 823
public class CameraShake : MonoBehaviour
{
	// Token: 0x06006F20 RID: 28448 RVA: 0x001C34A4 File Offset: 0x001C16A4
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 584142, XrefRangeEnd = 584147, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Awake()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CameraShake.NativeMethodInfoPtr_Awake_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06006F21 RID: 28449 RVA: 0x001C34E8 File Offset: 0x001C16E8
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 584147, XrefRangeEnd = 584149, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Update()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CameraShake.NativeMethodInfoPtr_Update_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06006F22 RID: 28450 RVA: 0x001C352C File Offset: 0x001C172C
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 584149, RefRangeEnd = 584150, XrefRangeStart = 584149, XrefRangeEnd = 584149, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void ShakeCamera(float shakePwr, float shakeDur)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref shakePwr;
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref shakeDur;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CameraShake.NativeMethodInfoPtr_ShakeCamera_Public_Void_Single_Single_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06006F23 RID: 28451 RVA: 0x001C3594 File Offset: 0x001C1794
	[CallerCount(63)]
	[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe CameraShake()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<CameraShake>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CameraShake.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06006F24 RID: 28452 RVA: 0x001C35E0 File Offset: 0x001C17E0
	// Note: this type is marked as 'beforefieldinit'.
	static CameraShake()
	{
		Il2CppClassPointerStore<CameraShake>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "CameraShake");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<CameraShake>.NativeClassPtr);
		CameraShake.NativeFieldInfoPtr_shakeTimer = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CameraShake>.NativeClassPtr, "shakeTimer");
		CameraShake.NativeFieldInfoPtr_shakeAmount = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CameraShake>.NativeClassPtr, "shakeAmount");
		CameraShake.NativeFieldInfoPtr_myCameraShake = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CameraShake>.NativeClassPtr, "myCameraShake");
		CameraShake.NativeFieldInfoPtr_startPos = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CameraShake>.NativeClassPtr, "startPos");
		CameraShake.NativeMethodInfoPtr_Awake_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CameraShake>.NativeClassPtr, 100671557);
		CameraShake.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CameraShake>.NativeClassPtr, 100671558);
		CameraShake.NativeMethodInfoPtr_ShakeCamera_Public_Void_Single_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CameraShake>.NativeClassPtr, 100671559);
		CameraShake.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CameraShake>.NativeClassPtr, 100671560);
	}

	// Token: 0x06006F25 RID: 28453 RVA: 0x0000351C File Offset: 0x0000171C
	public CameraShake(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17002666 RID: 9830
	// (get) Token: 0x06006F26 RID: 28454 RVA: 0x001C36B0 File Offset: 0x001C18B0
	// (set) Token: 0x06006F27 RID: 28455 RVA: 0x001C36D8 File Offset: 0x001C18D8
	public unsafe float shakeTimer
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CameraShake.NativeFieldInfoPtr_shakeTimer);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CameraShake.NativeFieldInfoPtr_shakeTimer)) = value;
		}
	}

	// Token: 0x17002667 RID: 9831
	// (get) Token: 0x06006F28 RID: 28456 RVA: 0x001C36FC File Offset: 0x001C18FC
	// (set) Token: 0x06006F29 RID: 28457 RVA: 0x001C3724 File Offset: 0x001C1924
	public unsafe float shakeAmount
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CameraShake.NativeFieldInfoPtr_shakeAmount);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CameraShake.NativeFieldInfoPtr_shakeAmount)) = value;
		}
	}

	// Token: 0x17002668 RID: 9832
	// (get) Token: 0x06006F2A RID: 28458 RVA: 0x001C3748 File Offset: 0x001C1948
	// (set) Token: 0x06006F2B RID: 28459 RVA: 0x001C3773 File Offset: 0x001C1973
	public unsafe static CameraShake myCameraShake
	{
		get
		{
			IntPtr intPtr;
			IL2CPP.il2cpp_field_static_get_value(CameraShake.NativeFieldInfoPtr_myCameraShake, (void*)(&intPtr));
			IntPtr intPtr2 = intPtr;
			return (intPtr2 != 0) ? new CameraShake(intPtr2) : null;
		}
		set
		{
			IL2CPP.il2cpp_field_static_set_value(CameraShake.NativeFieldInfoPtr_myCameraShake, IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17002669 RID: 9833
	// (get) Token: 0x06006F2C RID: 28460 RVA: 0x001C3788 File Offset: 0x001C1988
	// (set) Token: 0x06006F2D RID: 28461 RVA: 0x001C37B0 File Offset: 0x001C19B0
	public unsafe Vector3 startPos
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CameraShake.NativeFieldInfoPtr_startPos);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CameraShake.NativeFieldInfoPtr_startPos)) = value;
		}
	}

	// Token: 0x040049D8 RID: 18904
	private static readonly IntPtr NativeFieldInfoPtr_shakeTimer;

	// Token: 0x040049D9 RID: 18905
	private static readonly IntPtr NativeFieldInfoPtr_shakeAmount;

	// Token: 0x040049DA RID: 18906
	private static readonly IntPtr NativeFieldInfoPtr_myCameraShake;

	// Token: 0x040049DB RID: 18907
	private static readonly IntPtr NativeFieldInfoPtr_startPos;

	// Token: 0x040049DC RID: 18908
	private static readonly IntPtr NativeMethodInfoPtr_Awake_Private_Void_0;

	// Token: 0x040049DD RID: 18909
	private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

	// Token: 0x040049DE RID: 18910
	private static readonly IntPtr NativeMethodInfoPtr_ShakeCamera_Public_Void_Single_Single_0;

	// Token: 0x040049DF RID: 18911
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
