using System; using Cpp2IlInjected; using UnityEngine; namespace RootMotion.Demos { // Token: 0x020003EC RID: 1004 [Token(Token = "0x20003EC")] [RequireComponent(typeof(Animator))] public class CharacterAnimationSimple : CharacterAnimationBase { // Token: 0x06002417 RID: 9239 RVA: 0x00052440 File Offset: 0x00050640 [Token(Token = "0x6002417")] [Address(RVA = "0x1086E10", Offset = "0x1085610", VA = "0x181086E10", Slot = "6")] protected override void Start() { /* An exception occurred when decompiling this method (06002417) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RootMotion.Demos.CharacterAnimationSimple::Start() ---> System.Exception: Basic block has to end with unconditional control flow. {; Block_0:; call:void(CharacterAnimationBase::Start, ldloc:CharacterAnimationSimple[exp:CharacterAnimationBase](this)); stloc:Animator(var_0_0C, call:Animator(Component::GetComponentInChildren, ldloc:CharacterAnimationSimple[exp:Component](this))); stfld:Animator(CharacterAnimationSimple::animator, ldloc:CharacterAnimationSimple(this), ldloc:Animator(var_0_0C)); }; 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: 0x06002418 RID: 9240 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x6002418")] [Address(RVA = "0x1086CD0", Offset = "0x10854D0", VA = "0x181086CD0", Slot = "4")] public override Vector3 GetPivotPoint() { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x06002419 RID: 9241 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x6002419")] [Address(RVA = "0x1086E70", Offset = "0x1085670", VA = "0x181086E70")] private void Update() { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x0600241A RID: 9242 RVA: 0x00052460 File Offset: 0x00050660 [Token(Token = "0x600241A")] [Address(RVA = "0x1086CB0", Offset = "0x10854B0", VA = "0x181086CB0")] public CharacterAnimationSimple() { this.smoothFollow = true; this.smoothFollowSpeed = 20f; base..ctor(); } // Token: 0x04002DBB RID: 11707 [FieldOffset(Offset = "0x58")] [Token(Token = "0x4002DBB")] [SerializeField] private CharacterThirdPerson characterController; // Token: 0x04002DBC RID: 11708 [FieldOffset(Offset = "0x60")] [Token(Token = "0x4002DBC")] [SerializeField] private float pivotOffset; // Token: 0x04002DBD RID: 11709 [FieldOffset(Offset = "0x68")] [Token(Token = "0x4002DBD")] [SerializeField] private AnimationCurve moveSpeed; // Token: 0x04002DBE RID: 11710 [FieldOffset(Offset = "0x70")] [Token(Token = "0x4002DBE")] private Animator animator; } }