using System;
using Cpp2IlInjected;
using UnityEngine;

namespace RootMotion.Demos
{
	// Token: 0x020003B2 RID: 946
	[Token(Token = "0x20003B2")]
	[RequireComponent(typeof(Animator))]
	public class AnimatorController3rdPerson : MonoBehaviour
	{
		// Token: 0x06002321 RID: 8993 RVA: 0x00050950 File Offset: 0x0004EB50
		[Token(Token = "0x6002321")]
		[Address(RVA = "0x8CE980", Offset = "0x8CD780", VA = "0x1808CE980", Slot = "4")]
		protected virtual void Start()
		{
			/*
An exception occurred when decompiling this method (06002321)

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

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	stloc:Animator(var_0_06, call:Animator(Component::GetComponent, ldloc:AnimatorController3rdPerson[exp:Component](this))); 	stfld:Animator(AnimatorController3rdPerson::animator, ldloc:AnimatorController3rdPerson(this), ldloc:Animator(var_0_06)); }; 
   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: 0x06002322 RID: 8994 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002322")]
		[Address(RVA = "0x8CE6F0", Offset = "0x8CD4F0", VA = "0x1808CE6F0")]
		private void OnAnimatorMove()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002323 RID: 8995 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002323")]
		[Address(RVA = "0x8CE470", Offset = "0x8CD270", VA = "0x1808CE470", Slot = "5")]
		public virtual void Move(Vector3 moveInput, bool isMoving, Vector3 faceDirection, Vector3 aimTarget)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002324 RID: 8996 RVA: 0x0005096C File Offset: 0x0004EB6C
		[Token(Token = "0x6002324")]
		[Address(RVA = "0x8CE9D0", Offset = "0x8CD7D0", VA = "0x1808CE9D0")]
		public AnimatorController3rdPerson()
		{
		}

		// Token: 0x04002C72 RID: 11378
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4002C72")]
		public float rotateSpeed = 7f;

		// Token: 0x04002C73 RID: 11379
		[FieldOffset(Offset = "0x1C")]
		[Token(Token = "0x4002C73")]
		public float blendSpeed = 10f;

		// Token: 0x04002C74 RID: 11380
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4002C74")]
		public float maxAngle = 90f;

		// Token: 0x04002C75 RID: 11381
		[FieldOffset(Offset = "0x24")]
		[Token(Token = "0x4002C75")]
		public float moveSpeed = 1.5f;

		// Token: 0x04002C76 RID: 11382
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4002C76")]
		public float rootMotionWeight;

		// Token: 0x04002C77 RID: 11383
		[FieldOffset(Offset = "0x30")]
		[Token(Token = "0x4002C77")]
		protected Animator animator;

		// Token: 0x04002C78 RID: 11384
		[FieldOffset(Offset = "0x38")]
		[Token(Token = "0x4002C78")]
		protected Vector3 moveBlend;

		// Token: 0x04002C79 RID: 11385
		[FieldOffset(Offset = "0x44")]
		[Token(Token = "0x4002C79")]
		protected Vector3 moveInput;

		// Token: 0x04002C7A RID: 11386
		[FieldOffset(Offset = "0x50")]
		[Token(Token = "0x4002C7A")]
		protected Vector3 velocity;
	}
}
