using System;
using Cpp2IlInjected;
using RootMotion.FinalIK;
using UnityEngine;

namespace RootMotion.Demos
{
	// Token: 0x020003C3 RID: 963
	[Token(Token = "0x20003C3")]
	[RequireComponent(typeof(InteractionSystem))]
	public class InteractionSystemTestGUI : MonoBehaviour
	{
		// Token: 0x06002364 RID: 9060 RVA: 0x000510B8 File Offset: 0x0004F2B8
		[Token(Token = "0x6002364")]
		[Address(RVA = "0x10D7AC0", Offset = "0x10D68C0", VA = "0x1810D7AC0")]
		private void Awake()
		{
			/*
An exception occurred when decompiling this method (06002364)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RootMotion.Demos.InteractionSystemTestGUI::Awake()

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	stloc:InteractionSystem(var_0_06, call:InteractionSystem(Component::GetComponent, ldloc:InteractionSystemTestGUI[exp:Component](this))); 	stfld:InteractionSystem(InteractionSystemTestGUI::interactionSystem, ldloc:InteractionSystemTestGUI(this), ldloc:InteractionSystem(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: 0x06002365 RID: 9061 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002365")]
		[Address(RVA = "0x10D7B10", Offset = "0x10D6910", VA = "0x1810D7B10")]
		private void OnGUI()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002366 RID: 9062 RVA: 0x000510D4 File Offset: 0x0004F2D4
		[Token(Token = "0x6002366")]
		[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
		public InteractionSystemTestGUI()
		{
		}

		// Token: 0x04002CE1 RID: 11489
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4002CE1")]
		[SerializeField]
		[Tooltip("The object to interact to")]
		private InteractionObject interactionObject;

		// Token: 0x04002CE2 RID: 11490
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4002CE2")]
		[SerializeField]
		[Tooltip("The effectors to interact with")]
		private FullBodyBipedEffector[] effectors;

		// Token: 0x04002CE3 RID: 11491
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4002CE3")]
		private InteractionSystem interactionSystem;
	}
}
