using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x02000398 RID: 920
[Token(Token = "0x2000398")]
[AddComponentMenu("Camera-Control/Mouse Look")]
public class MouseLook : MonoBehaviour
{
	// Token: 0x0600237F RID: 9087 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600237F")]
	[Address(RVA = "0xC33E30", Offset = "0xC32E30", VA = "0x180C33E30")]
	private void Update()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06002380 RID: 9088 RVA: 0x00055180 File Offset: 0x00053380
	[Token(Token = "0x6002380")]
	[Address(RVA = "0xC33D80", Offset = "0xC32D80", VA = "0x180C33D80")]
	private void Start()
	{
		if (base.GetComponent<Rigidbody>())
		{
			base.GetComponent<Rigidbody>().freezeRotation = true;
		}
	}

	// Token: 0x06002381 RID: 9089 RVA: 0x000551B0 File Offset: 0x000533B0
	[Token(Token = "0x6002381")]
	[Address(RVA = "0xC340B0", Offset = "0xC330B0", VA = "0x180C340B0")]
	public MouseLook()
	{
	}

	// Token: 0x04002CEA RID: 11498
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002CEA")]
	public MouseLook.RotationAxes axes;

	// Token: 0x04002CEB RID: 11499
	[FieldOffset(Offset = "0x1C")]
	[Token(Token = "0x4002CEB")]
	public float sensitivityX = 15f;

	// Token: 0x04002CEC RID: 11500
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002CEC")]
	public float sensitivityY = 15f;

	// Token: 0x04002CED RID: 11501
	[FieldOffset(Offset = "0x24")]
	[Token(Token = "0x4002CED")]
	public float minimumX = -360f;

	// Token: 0x04002CEE RID: 11502
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4002CEE")]
	public float maximumX = 360f;

	// Token: 0x04002CEF RID: 11503
	[FieldOffset(Offset = "0x2C")]
	[Token(Token = "0x4002CEF")]
	public float minimumY = -60f;

	// Token: 0x04002CF0 RID: 11504
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x4002CF0")]
	public float maximumY = 60f;

	// Token: 0x04002CF1 RID: 11505
	[FieldOffset(Offset = "0x34")]
	[Token(Token = "0x4002CF1")]
	private float rotationY;

	// Token: 0x02000399 RID: 921
	[Token(Token = "0x2000399")]
	public enum RotationAxes
	{
		// Token: 0x04002CF3 RID: 11507
		[Token(Token = "0x4002CF3")]
		MouseXAndY,
		// Token: 0x04002CF4 RID: 11508
		[Token(Token = "0x4002CF4")]
		MouseX,
		// Token: 0x04002CF5 RID: 11509
		[Token(Token = "0x4002CF5")]
		MouseY
	}
}
