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

// Token: 0x0200038F RID: 911
public class CameraShake : MonoBehaviour
{
	// Token: 0x06007773 RID: 30579 RVA: 0x001E61EC File Offset: 0x001E43EC
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 616443, XrefRangeEnd = 616448, 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: 0x06007774 RID: 30580 RVA: 0x001E6230 File Offset: 0x001E4430
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 616448, XrefRangeEnd = 616450, 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: 0x06007775 RID: 30581 RVA: 0x001E6274 File Offset: 0x001E4474
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 616450, RefRangeEnd = 616451, XrefRangeStart = 616450, XrefRangeEnd = 616450, 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: 0x06007776 RID: 30582 RVA: 0x001E62DC File Offset: 0x001E44DC
	[CallerCount(67)]
	[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, 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: 0x06007777 RID: 30583 RVA: 0x001E6328 File Offset: 0x001E4528
	// 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, 100672270);
		CameraShake.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CameraShake>.NativeClassPtr, 100672271);
		CameraShake.NativeMethodInfoPtr_ShakeCamera_Public_Void_Single_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CameraShake>.NativeClassPtr, 100672272);
		CameraShake.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CameraShake>.NativeClassPtr, 100672273);
	}

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

	// Token: 0x17002901 RID: 10497
	// (get) Token: 0x06007779 RID: 30585 RVA: 0x001E63F8 File Offset: 0x001E45F8
	// (set) Token: 0x0600777A RID: 30586 RVA: 0x001E6420 File Offset: 0x001E4620
	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: 0x17002902 RID: 10498
	// (get) Token: 0x0600777B RID: 30587 RVA: 0x001E6444 File Offset: 0x001E4644
	// (set) Token: 0x0600777C RID: 30588 RVA: 0x001E646C File Offset: 0x001E466C
	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: 0x17002903 RID: 10499
	// (get) Token: 0x0600777D RID: 30589 RVA: 0x001E6490 File Offset: 0x001E4690
	// (set) Token: 0x0600777E RID: 30590 RVA: 0x001E64BB File Offset: 0x001E46BB
	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: 0x17002904 RID: 10500
	// (get) Token: 0x0600777F RID: 30591 RVA: 0x001E64D0 File Offset: 0x001E46D0
	// (set) Token: 0x06007780 RID: 30592 RVA: 0x001E64F8 File Offset: 0x001E46F8
	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: 0x04004F81 RID: 20353
	private static readonly IntPtr NativeFieldInfoPtr_shakeTimer;

	// Token: 0x04004F82 RID: 20354
	private static readonly IntPtr NativeFieldInfoPtr_shakeAmount;

	// Token: 0x04004F83 RID: 20355
	private static readonly IntPtr NativeFieldInfoPtr_myCameraShake;

	// Token: 0x04004F84 RID: 20356
	private static readonly IntPtr NativeFieldInfoPtr_startPos;

	// Token: 0x04004F85 RID: 20357
	private static readonly IntPtr NativeMethodInfoPtr_Awake_Private_Void_0;

	// Token: 0x04004F86 RID: 20358
	private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

	// Token: 0x04004F87 RID: 20359
	private static readonly IntPtr NativeMethodInfoPtr_ShakeCamera_Public_Void_Single_Single_0;

	// Token: 0x04004F88 RID: 20360
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
