103 lines
5.1 KiB
C#
103 lines
5.1 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RootMotion.Demos
|
|
{
|
|
// Token: 0x020003BB RID: 955
|
|
[Token(Token = "0x20003BB")]
|
|
[RequireComponent(typeof(Animator))]
|
|
public class AnimatorController3rdPerson : MonoBehaviour
|
|
{
|
|
// Token: 0x06002353 RID: 9043 RVA: 0x00050FD8 File Offset: 0x0004F1D8
|
|
[Token(Token = "0x6002353")]
|
|
[Address(RVA = "0xB66010", Offset = "0xB64810", VA = "0x180B66010", Slot = "4")]
|
|
protected virtual void Start()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06002353)
|
|
|
|
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: 0x06002354 RID: 9044 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002354")]
|
|
[Address(RVA = "0xB65D80", Offset = "0xB64580", VA = "0x180B65D80")]
|
|
private void OnAnimatorMove()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002355 RID: 9045 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002355")]
|
|
[Address(RVA = "0xB65B00", Offset = "0xB64300", VA = "0x180B65B00", 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: 0x06002356 RID: 9046 RVA: 0x00050FF4 File Offset: 0x0004F1F4
|
|
[Token(Token = "0x6002356")]
|
|
[Address(RVA = "0xB66060", Offset = "0xB64860", VA = "0x180B66060")]
|
|
public AnimatorController3rdPerson()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04002CB4 RID: 11444
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4002CB4")]
|
|
public float rotateSpeed = 7f;
|
|
|
|
// Token: 0x04002CB5 RID: 11445
|
|
[FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x4002CB5")]
|
|
public float blendSpeed = 10f;
|
|
|
|
// Token: 0x04002CB6 RID: 11446
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4002CB6")]
|
|
public float maxAngle = 90f;
|
|
|
|
// Token: 0x04002CB7 RID: 11447
|
|
[FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x4002CB7")]
|
|
public float moveSpeed = 1.5f;
|
|
|
|
// Token: 0x04002CB8 RID: 11448
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4002CB8")]
|
|
public float rootMotionWeight;
|
|
|
|
// Token: 0x04002CB9 RID: 11449
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4002CB9")]
|
|
protected Animator animator;
|
|
|
|
// Token: 0x04002CBA RID: 11450
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4002CBA")]
|
|
protected Vector3 moveBlend;
|
|
|
|
// Token: 0x04002CBB RID: 11451
|
|
[FieldOffset(Offset = "0x44")]
|
|
[Token(Token = "0x4002CBB")]
|
|
protected Vector3 moveInput;
|
|
|
|
// Token: 0x04002CBC RID: 11452
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4002CBC")]
|
|
protected Vector3 velocity;
|
|
}
|
|
}
|