using System;
using Cpp2IlInjected;
using UnityEngine;

namespace RootMotion.Demos
{
	// Token: 0x02000416 RID: 1046
	[Token(Token = "0x2000416")]
	[RequireComponent(typeof(FPSAiming))]
	[RequireComponent(typeof(Animator))]
	public class FPSCharacter : MonoBehaviour
	{
		// Token: 0x0600261E RID: 9758 RVA: 0x00058260 File Offset: 0x00056460
		[Token(Token = "0x600261E")]
		[Address(RVA = "0xD1A8C0", Offset = "0xD198C0", VA = "0x180D1A8C0")]
		private void Start()
		{
			/*
An exception occurred when decompiling this method (0600261E)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RootMotion.Demos.FPSCharacter::Start()

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	stloc:Animator(var_0_06, call:Animator(Component::GetComponent, ldloc:FPSCharacter[exp:Component](this))); 	stfld:Animator(FPSCharacter::animator, ldloc:FPSCharacter(this), ldloc:Animator(var_0_06)); 	stloc:FPSAiming(var_1_14, call:FPSAiming(Component::GetComponent, ldloc:FPSCharacter[exp:Component](this))); 	stfld:FPSAiming(FPSCharacter::FPSAiming, ldloc:FPSCharacter(this), ldloc:FPSAiming(var_1_14)); }; 
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
   --- End of inner exception stack trace ---
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
   at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
*/;
		}

		// Token: 0x0600261F RID: 9759 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x600261F")]
		[Address(RVA = "0xD1A940", Offset = "0xD19940", VA = "0x180D1A940")]
		private void Update()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002620 RID: 9760 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002620")]
		[Address(RVA = "0xD1A800", Offset = "0xD19800", VA = "0x180D1A800")]
		private void OnGUI()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002621 RID: 9761 RVA: 0x00058288 File Offset: 0x00056488
		[Token(Token = "0x6002621")]
		[Address(RVA = "0xD1AA30", Offset = "0xD19A30", VA = "0x180D1AA30")]
		public FPSCharacter()
		{
		}

		// Token: 0x04002FB0 RID: 12208
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4002FB0")]
		[Range(0f, 1f)]
		public float walkSpeed = 0.5f;

		// Token: 0x04002FB1 RID: 12209
		[FieldOffset(Offset = "0x1C")]
		[Token(Token = "0x4002FB1")]
		private float sVel;

		// Token: 0x04002FB2 RID: 12210
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4002FB2")]
		private Animator animator;

		// Token: 0x04002FB3 RID: 12211
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4002FB3")]
		private FPSAiming FPSAiming;
	}
}
