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

namespace RootMotion.Demos
{
	// Token: 0x0200041B RID: 1051
	[Token(Token = "0x200041B")]
	[RequireComponent(typeof(InteractionSystem))]
	public class InteractionSystemTestGUI : MonoBehaviour
	{
		// Token: 0x0600262D RID: 9773 RVA: 0x00058310 File Offset: 0x00056510
		[Token(Token = "0x600262D")]
		[Address(RVA = "0x1047040", Offset = "0x1046040", VA = "0x181047040")]
		private void Awake()
		{
			/*
An exception occurred when decompiling this method (0600262D)

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: 0x0600262E RID: 9774 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x600262E")]
		[Address(RVA = "0x1047090", Offset = "0x1046090", VA = "0x181047090")]
		private void OnGUI()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x0600262F RID: 9775 RVA: 0x0005832C File Offset: 0x0005652C
		[Token(Token = "0x600262F")]
		[Address(RVA = "0x328C40", Offset = "0x327C40", VA = "0x180328C40")]
		public InteractionSystemTestGUI()
		{
		}

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

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

		// Token: 0x04002FCD RID: 12237
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4002FCD")]
		private InteractionSystem interactionSystem;
	}
}
