Files
NobetaSource/Cpp2IL/Assembly-CSharp/RootMotion/Demos/CharacterAnimationSimple.cs
2023-09-06 22:19:13 +02:00

84 lines
4.6 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
namespace RootMotion.Demos
{
// Token: 0x0200043B RID: 1083
[Token(Token = "0x200043B")]
[RequireComponent(typeof(Animator))]
public class CharacterAnimationSimple : CharacterAnimationBase
{
// Token: 0x060026AE RID: 9902 RVA: 0x00059120 File Offset: 0x00057320
[Token(Token = "0x60026AE")]
[Address(RVA = "0xB937F0", Offset = "0xB927F0", VA = "0x180B937F0", Slot = "6")]
protected override void Start()
{
/*
An exception occurred when decompiling this method (060026AE)
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: 0x060026AF RID: 9903 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60026AF")]
[Address(RVA = "0xB936B0", Offset = "0xB926B0", VA = "0x180B936B0", Slot = "4")]
public override Vector3 GetPivotPoint()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060026B0 RID: 9904 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60026B0")]
[Address(RVA = "0xB93850", Offset = "0xB92850", VA = "0x180B93850")]
private void Update()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060026B1 RID: 9905 RVA: 0x00059140 File Offset: 0x00057340
[Token(Token = "0x60026B1")]
[Address(RVA = "0xB93690", Offset = "0xB92690", VA = "0x180B93690")]
public CharacterAnimationSimple()
{
this.smoothFollow = true;
this.smoothFollowSpeed = 20f;
base..ctor();
}
// Token: 0x04003063 RID: 12387
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x4003063")]
[SerializeField]
private CharacterThirdPerson characterController;
// Token: 0x04003064 RID: 12388
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x4003064")]
[SerializeField]
private float pivotOffset;
// Token: 0x04003065 RID: 12389
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x4003065")]
[SerializeField]
private AnimationCurve moveSpeed;
// Token: 0x04003066 RID: 12390
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x4003066")]
private Animator animator;
}
}