Add v1.0.3.1
This commit is contained in:
37
Cpp2IL/Assembly-CSharp/RootMotion/Demos/AimBoxing.cs
Normal file
37
Cpp2IL/Assembly-CSharp/RootMotion/Demos/AimBoxing.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003A6 RID: 934
|
||||
[Token(Token = "0x20003A6")]
|
||||
public class AimBoxing : MonoBehaviour
|
||||
{
|
||||
// Token: 0x060022F7 RID: 8951 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60022F7")]
|
||||
[Address(RVA = "0x11E39F0", Offset = "0x11E27F0", VA = "0x1811E39F0")]
|
||||
private void LateUpdate()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060022F8 RID: 8952 RVA: 0x00050598 File Offset: 0x0004E798
|
||||
[Token(Token = "0x60022F8")]
|
||||
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
|
||||
public AimBoxing()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002C14 RID: 11284
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002C14")]
|
||||
public AimIK aimIK;
|
||||
|
||||
// Token: 0x04002C15 RID: 11285
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002C15")]
|
||||
public Transform pin;
|
||||
}
|
||||
}
|
||||
133
Cpp2IL/Assembly-CSharp/RootMotion/Demos/AnimationWarping.cs
Normal file
133
Cpp2IL/Assembly-CSharp/RootMotion/Demos/AnimationWarping.cs
Normal file
@@ -0,0 +1,133 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003AF RID: 943
|
||||
[Token(Token = "0x20003AF")]
|
||||
public class AnimationWarping : OffsetModifier
|
||||
{
|
||||
// Token: 0x0600231C RID: 8988 RVA: 0x00050918 File Offset: 0x0004EB18
|
||||
[Token(Token = "0x600231C")]
|
||||
[Address(RVA = "0x8CD240", Offset = "0x8CC040", VA = "0x1808CD240", Slot = "5")]
|
||||
protected override void Start()
|
||||
{
|
||||
base.Start();
|
||||
AnimationWarping.EffectorMode effectorMode = this.effectorMode;
|
||||
this.lastMode = effectorMode;
|
||||
}
|
||||
|
||||
// Token: 0x0600231D RID: 8989 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600231D")]
|
||||
[Address(RVA = "0x8CCAB0", Offset = "0x8CB8B0", VA = "0x1808CCAB0")]
|
||||
public float GetWarpWeight(int warpIndex)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600231E RID: 8990 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600231E")]
|
||||
[Address(RVA = "0x8CCDF0", Offset = "0x8CBBF0", VA = "0x1808CCDF0", Slot = "4")]
|
||||
protected override void OnModifyOffset()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600231F RID: 8991 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600231F")]
|
||||
[Address(RVA = "0x8CCD40", Offset = "0x8CBB40", VA = "0x1808CCD40")]
|
||||
private void OnDisable()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002320 RID: 8992 RVA: 0x0005093C File Offset: 0x0004EB3C
|
||||
[Token(Token = "0x6002320")]
|
||||
[Address(RVA = "0x8CD260", Offset = "0x8CC060", VA = "0x1808CD260")]
|
||||
public AnimationWarping()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002C65 RID: 11365
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002C65")]
|
||||
[Tooltip("Reference to the Animator component to use")]
|
||||
public Animator animator;
|
||||
|
||||
// Token: 0x04002C66 RID: 11366
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002C66")]
|
||||
[Tooltip("Using effector.positionOffset or effector.position with effector.positionWeight? The former will enable you to use effector.position for other things, the latter will weigh in the effectors, hence using Reach and Pull in the process.")]
|
||||
public AnimationWarping.EffectorMode effectorMode;
|
||||
|
||||
// Token: 0x04002C67 RID: 11367
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002C67")]
|
||||
[Space]
|
||||
[Tooltip("The array of warps, can have multiple simultaneous warps.")]
|
||||
[Space(10f)]
|
||||
public AnimationWarping.Warp[] warps;
|
||||
|
||||
// Token: 0x04002C68 RID: 11368
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002C68")]
|
||||
private AnimationWarping.EffectorMode lastMode;
|
||||
|
||||
// Token: 0x020003B0 RID: 944
|
||||
[Token(Token = "0x20003B0")]
|
||||
[Serializable]
|
||||
public struct Warp
|
||||
{
|
||||
// Token: 0x04002C69 RID: 11369
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4002C69")]
|
||||
[Tooltip("Layer of the 'Animation State' in the Animator.")]
|
||||
public int animationLayer;
|
||||
|
||||
// Token: 0x04002C6A RID: 11370
|
||||
[FieldOffset(Offset = "0x8")]
|
||||
[Token(Token = "0x4002C6A")]
|
||||
[Tooltip("Name of the state in the Animator to warp.")]
|
||||
public string animationState;
|
||||
|
||||
// Token: 0x04002C6B RID: 11371
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4002C6B")]
|
||||
[Tooltip("Warping weight by normalized time of the animation state.")]
|
||||
public AnimationCurve weightCurve;
|
||||
|
||||
// Token: 0x04002C6C RID: 11372
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002C6C")]
|
||||
[Tooltip("Animated point to warp from. This should be in character space so keep this Transform parented to the root of the character.")]
|
||||
public Transform warpFrom;
|
||||
|
||||
// Token: 0x04002C6D RID: 11373
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002C6D")]
|
||||
[Tooltip("World space point to warp to.")]
|
||||
public Transform warpTo;
|
||||
|
||||
// Token: 0x04002C6E RID: 11374
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002C6E")]
|
||||
[Tooltip("Which FBBIK effector to use?")]
|
||||
public FullBodyBipedEffector effector;
|
||||
}
|
||||
|
||||
// Token: 0x020003B1 RID: 945
|
||||
[Token(Token = "0x20003B1")]
|
||||
[Serializable]
|
||||
public enum EffectorMode
|
||||
{
|
||||
// Token: 0x04002C70 RID: 11376
|
||||
[Token(Token = "0x4002C70")]
|
||||
PositionOffset,
|
||||
// Token: 0x04002C71 RID: 11377
|
||||
[Token(Token = "0x4002C71")]
|
||||
Position
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003B2 RID: 946
|
||||
[Token(Token = "0x20003B2")]
|
||||
[RequireComponent(typeof(Animator))]
|
||||
public class AnimatorController3rdPerson : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002321 RID: 8993 RVA: 0x00050950 File Offset: 0x0004EB50
|
||||
[Token(Token = "0x6002321")]
|
||||
[Address(RVA = "0x8CE980", Offset = "0x8CD780", VA = "0x1808CE980", Slot = "4")]
|
||||
protected virtual void Start()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06002321)
|
||||
|
||||
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: 0x06002322 RID: 8994 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002322")]
|
||||
[Address(RVA = "0x8CE6F0", Offset = "0x8CD4F0", VA = "0x1808CE6F0")]
|
||||
private void OnAnimatorMove()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002323 RID: 8995 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002323")]
|
||||
[Address(RVA = "0x8CE470", Offset = "0x8CD270", VA = "0x1808CE470", 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: 0x06002324 RID: 8996 RVA: 0x0005096C File Offset: 0x0004EB6C
|
||||
[Token(Token = "0x6002324")]
|
||||
[Address(RVA = "0x8CE9D0", Offset = "0x8CD7D0", VA = "0x1808CE9D0")]
|
||||
public AnimatorController3rdPerson()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002C72 RID: 11378
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002C72")]
|
||||
public float rotateSpeed = 7f;
|
||||
|
||||
// Token: 0x04002C73 RID: 11379
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4002C73")]
|
||||
public float blendSpeed = 10f;
|
||||
|
||||
// Token: 0x04002C74 RID: 11380
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002C74")]
|
||||
public float maxAngle = 90f;
|
||||
|
||||
// Token: 0x04002C75 RID: 11381
|
||||
[FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x4002C75")]
|
||||
public float moveSpeed = 1.5f;
|
||||
|
||||
// Token: 0x04002C76 RID: 11382
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002C76")]
|
||||
public float rootMotionWeight;
|
||||
|
||||
// Token: 0x04002C77 RID: 11383
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002C77")]
|
||||
protected Animator animator;
|
||||
|
||||
// Token: 0x04002C78 RID: 11384
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002C78")]
|
||||
protected Vector3 moveBlend;
|
||||
|
||||
// Token: 0x04002C79 RID: 11385
|
||||
[FieldOffset(Offset = "0x44")]
|
||||
[Token(Token = "0x4002C79")]
|
||||
protected Vector3 moveInput;
|
||||
|
||||
// Token: 0x04002C7A RID: 11386
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4002C7A")]
|
||||
protected Vector3 velocity;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,163 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003B3 RID: 947
|
||||
[Token(Token = "0x20003B3")]
|
||||
[RequireComponent(typeof(FullBodyBipedIK))]
|
||||
[RequireComponent(typeof(AimIK))]
|
||||
public class AnimatorController3rdPersonIK : AnimatorController3rdPerson
|
||||
{
|
||||
// Token: 0x06002325 RID: 8997 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002325")]
|
||||
[Address(RVA = "0x8CE1D0", Offset = "0x8CCFD0", VA = "0x1808CE1D0", Slot = "4")]
|
||||
protected override void Start()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002326 RID: 8998 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002326")]
|
||||
[Address(RVA = "0x8CD930", Offset = "0x8CC730", VA = "0x1808CD930", Slot = "5")]
|
||||
public override void Move(Vector3 moveInput, bool isMoving, Vector3 faceDirection, Vector3 aimTarget)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002327 RID: 8999 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002327")]
|
||||
[Address(RVA = "0x8CE070", Offset = "0x8CCE70", VA = "0x1808CE070")]
|
||||
private void Read()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002328 RID: 9000 RVA: 0x000509AC File Offset: 0x0004EBAC
|
||||
[Token(Token = "0x6002328")]
|
||||
[Address(RVA = "0x8CD270", Offset = "0x8CC070", VA = "0x1808CD270")]
|
||||
private void AimIK()
|
||||
{
|
||||
IKSolverAim solver = this.aim.solver;
|
||||
float z = this.aimTarget.z;
|
||||
solver.IKPosition.z = z;
|
||||
this.aim.solver.Update();
|
||||
}
|
||||
|
||||
// Token: 0x06002329 RID: 9001 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002329")]
|
||||
[Address(RVA = "0x8CD2D0", Offset = "0x8CC0D0", VA = "0x1808CD2D0")]
|
||||
private void FBBIK()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600232A RID: 9002 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600232A")]
|
||||
[Address(RVA = "0x8CDCA0", Offset = "0x8CCAA0", VA = "0x1808CDCA0")]
|
||||
private void OnPreRead()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600232B RID: 9003 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600232B")]
|
||||
[Address(RVA = "0x8CD6D0", Offset = "0x8CC4D0", VA = "0x1808CD6D0")]
|
||||
private void HeadLookAt(Vector3 lookAtTarget)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600232C RID: 9004 RVA: 0x000509F4 File Offset: 0x0004EBF4
|
||||
[Token(Token = "0x600232C")]
|
||||
[Address(RVA = "0x8CDB70", Offset = "0x8CC970", VA = "0x1808CDB70")]
|
||||
private void OnDestroy()
|
||||
{
|
||||
FullBodyBipedIK fullBodyBipedIK = this.ik;
|
||||
int num = 0;
|
||||
if (fullBodyBipedIK != num)
|
||||
{
|
||||
IKSolverFullBodyBiped solver = this.ik.solver;
|
||||
IKSolver.UpdateDelegate onPreRead = solver.OnPreRead;
|
||||
IKSolver.UpdateDelegate updateDelegate = new IKSolver.UpdateDelegate(this.OnPreRead);
|
||||
Delegate @delegate = Delegate.Remove(onPreRead, updateDelegate);
|
||||
int num2 = 0;
|
||||
if (@delegate != 0 && @delegate == 0)
|
||||
{
|
||||
throw new InvalidCastException();
|
||||
}
|
||||
solver.OnPreRead = num2;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600232D RID: 9005 RVA: 0x00050A60 File Offset: 0x0004EC60
|
||||
[Token(Token = "0x600232D")]
|
||||
[Address(RVA = "0x8CE440", Offset = "0x8CD240", VA = "0x1808CE440")]
|
||||
public AnimatorController3rdPersonIK()
|
||||
{
|
||||
this.rotateSpeed = 7f;
|
||||
this.blendSpeed = 10f;
|
||||
this.maxAngle = 90f;
|
||||
this.moveSpeed = 1.5f;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04002C7B RID: 11387
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4002C7B")]
|
||||
[Range(0f, 1f)]
|
||||
public float headLookWeight = 1f;
|
||||
|
||||
// Token: 0x04002C7C RID: 11388
|
||||
[FieldOffset(Offset = "0x64")]
|
||||
[Token(Token = "0x4002C7C")]
|
||||
public Vector3 gunHoldOffset;
|
||||
|
||||
// Token: 0x04002C7D RID: 11389
|
||||
[FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x4002C7D")]
|
||||
public Vector3 leftHandOffset;
|
||||
|
||||
// Token: 0x04002C7E RID: 11390
|
||||
[FieldOffset(Offset = "0x80")]
|
||||
[Token(Token = "0x4002C7E")]
|
||||
public Recoil recoil;
|
||||
|
||||
// Token: 0x04002C7F RID: 11391
|
||||
[FieldOffset(Offset = "0x88")]
|
||||
[Token(Token = "0x4002C7F")]
|
||||
private AimIK aim;
|
||||
|
||||
// Token: 0x04002C80 RID: 11392
|
||||
[FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x4002C80")]
|
||||
private FullBodyBipedIK ik;
|
||||
|
||||
// Token: 0x04002C81 RID: 11393
|
||||
[FieldOffset(Offset = "0x98")]
|
||||
[Token(Token = "0x4002C81")]
|
||||
private Vector3 headLookAxis;
|
||||
|
||||
// Token: 0x04002C82 RID: 11394
|
||||
[FieldOffset(Offset = "0xA4")]
|
||||
[Token(Token = "0x4002C82")]
|
||||
private Vector3 leftHandPosRelToRightHand;
|
||||
|
||||
// Token: 0x04002C83 RID: 11395
|
||||
[FieldOffset(Offset = "0xB0")]
|
||||
[Token(Token = "0x4002C83")]
|
||||
private Quaternion leftHandRotRelToRightHand;
|
||||
|
||||
// Token: 0x04002C84 RID: 11396
|
||||
[FieldOffset(Offset = "0xC0")]
|
||||
[Token(Token = "0x4002C84")]
|
||||
private Vector3 aimTarget;
|
||||
|
||||
// Token: 0x04002C85 RID: 11397
|
||||
[FieldOffset(Offset = "0xCC")]
|
||||
[Token(Token = "0x4002C85")]
|
||||
private Quaternion rightHandRotation;
|
||||
}
|
||||
}
|
||||
30
Cpp2IL/Assembly-CSharp/RootMotion/Demos/ApplicationQuit.cs
Normal file
30
Cpp2IL/Assembly-CSharp/RootMotion/Demos/ApplicationQuit.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003EE RID: 1006
|
||||
[Token(Token = "0x20003EE")]
|
||||
public class ApplicationQuit : MonoBehaviour
|
||||
{
|
||||
// Token: 0x0600241A RID: 9242 RVA: 0x0005230C File Offset: 0x0005050C
|
||||
[Token(Token = "0x600241A")]
|
||||
[Address(RVA = "0x8CF200", Offset = "0x8CE000", VA = "0x1808CF200")]
|
||||
private void Update()
|
||||
{
|
||||
if (Input.GetKeyDownInt(KeyCode.Q) || Input.GetKeyDownInt(KeyCode.Escape))
|
||||
{
|
||||
Application.Quit();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600241B RID: 9243 RVA: 0x00052338 File Offset: 0x00050538
|
||||
[Token(Token = "0x600241B")]
|
||||
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
|
||||
public ApplicationQuit()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
46
Cpp2IL/Assembly-CSharp/RootMotion/Demos/BendGoal.cs
Normal file
46
Cpp2IL/Assembly-CSharp/RootMotion/Demos/BendGoal.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003DE RID: 990
|
||||
[Token(Token = "0x20003DE")]
|
||||
public class BendGoal : MonoBehaviour
|
||||
{
|
||||
// Token: 0x060023D5 RID: 9173 RVA: 0x00051E04 File Offset: 0x00050004
|
||||
[Token(Token = "0x60023D5")]
|
||||
[Address(RVA = "0x8D4120", Offset = "0x8D2F20", VA = "0x1808D4120")]
|
||||
private void Start()
|
||||
{
|
||||
Debug.Log("BendGoal is deprecated, you can now a bend goal from the custom inspector of the LimbIK component.");
|
||||
}
|
||||
|
||||
// Token: 0x060023D6 RID: 9174 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023D6")]
|
||||
[Address(RVA = "0x8D4050", Offset = "0x8D2E50", VA = "0x1808D4050")]
|
||||
private void LateUpdate()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023D7 RID: 9175 RVA: 0x00051E1C File Offset: 0x0005001C
|
||||
[Token(Token = "0x60023D7")]
|
||||
[Address(RVA = "0x8D4180", Offset = "0x8D2F80", VA = "0x1808D4180")]
|
||||
public BendGoal()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002D6A RID: 11626
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002D6A")]
|
||||
public LimbIK limbIK;
|
||||
|
||||
// Token: 0x04002D6B RID: 11627
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002D6B")]
|
||||
[Range(0f, 1f)]
|
||||
public float weight = 1f;
|
||||
}
|
||||
}
|
||||
137
Cpp2IL/Assembly-CSharp/RootMotion/Demos/BipedIKvsAnimatorIK.cs
Normal file
137
Cpp2IL/Assembly-CSharp/RootMotion/Demos/BipedIKvsAnimatorIK.cs
Normal file
@@ -0,0 +1,137 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003A9 RID: 937
|
||||
[Token(Token = "0x20003A9")]
|
||||
public class BipedIKvsAnimatorIK : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002302 RID: 8962 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002302")]
|
||||
[Address(RVA = "0x8D6200", Offset = "0x8D5000", VA = "0x1808D6200")]
|
||||
private void OnAnimatorIK(int layer)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002303 RID: 8963 RVA: 0x000506D0 File Offset: 0x0004E8D0
|
||||
[Token(Token = "0x6002303")]
|
||||
[Address(RVA = "0x8D6A10", Offset = "0x8D5810", VA = "0x1808D6A10")]
|
||||
public BipedIKvsAnimatorIK()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002C26 RID: 11302
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002C26")]
|
||||
[LargeHeader("References")]
|
||||
public Animator animator;
|
||||
|
||||
// Token: 0x04002C27 RID: 11303
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002C27")]
|
||||
public BipedIK bipedIK;
|
||||
|
||||
// Token: 0x04002C28 RID: 11304
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002C28")]
|
||||
[LargeHeader("Look At")]
|
||||
public Transform lookAtTargetBiped;
|
||||
|
||||
// Token: 0x04002C29 RID: 11305
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002C29")]
|
||||
public Transform lookAtTargetAnimator;
|
||||
|
||||
// Token: 0x04002C2A RID: 11306
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002C2A")]
|
||||
[Range(0f, 1f)]
|
||||
public float lookAtWeight = 1f;
|
||||
|
||||
// Token: 0x04002C2B RID: 11307
|
||||
[FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x4002C2B")]
|
||||
[Range(0f, 1f)]
|
||||
public float lookAtBodyWeight = 1f;
|
||||
|
||||
// Token: 0x04002C2C RID: 11308
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002C2C")]
|
||||
[Range(0f, 1f)]
|
||||
public float lookAtHeadWeight = 1f;
|
||||
|
||||
// Token: 0x04002C2D RID: 11309
|
||||
[FieldOffset(Offset = "0x44")]
|
||||
[Token(Token = "0x4002C2D")]
|
||||
[Range(0f, 1f)]
|
||||
public float lookAtEyesWeight = 1f;
|
||||
|
||||
// Token: 0x04002C2E RID: 11310
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002C2E")]
|
||||
[Range(0f, 1f)]
|
||||
public float lookAtClampWeight = 0.5f;
|
||||
|
||||
// Token: 0x04002C2F RID: 11311
|
||||
[FieldOffset(Offset = "0x4C")]
|
||||
[Token(Token = "0x4002C2F")]
|
||||
[Range(0f, 1f)]
|
||||
public float lookAtClampWeightHead = 0.5f;
|
||||
|
||||
// Token: 0x04002C30 RID: 11312
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4002C30")]
|
||||
[Range(0f, 1f)]
|
||||
public float lookAtClampWeightEyes = 0.5f;
|
||||
|
||||
// Token: 0x04002C31 RID: 11313
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4002C31")]
|
||||
[LargeHeader("Foot")]
|
||||
public Transform footTargetBiped;
|
||||
|
||||
// Token: 0x04002C32 RID: 11314
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4002C32")]
|
||||
public Transform footTargetAnimator;
|
||||
|
||||
// Token: 0x04002C33 RID: 11315
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4002C33")]
|
||||
[Range(0f, 1f)]
|
||||
public float footPositionWeight;
|
||||
|
||||
// Token: 0x04002C34 RID: 11316
|
||||
[FieldOffset(Offset = "0x6C")]
|
||||
[Token(Token = "0x4002C34")]
|
||||
[Range(0f, 1f)]
|
||||
public float footRotationWeight;
|
||||
|
||||
// Token: 0x04002C35 RID: 11317
|
||||
[FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x4002C35")]
|
||||
[LargeHeader("Hand")]
|
||||
public Transform handTargetBiped;
|
||||
|
||||
// Token: 0x04002C36 RID: 11318
|
||||
[FieldOffset(Offset = "0x78")]
|
||||
[Token(Token = "0x4002C36")]
|
||||
public Transform handTargetAnimator;
|
||||
|
||||
// Token: 0x04002C37 RID: 11319
|
||||
[FieldOffset(Offset = "0x80")]
|
||||
[Token(Token = "0x4002C37")]
|
||||
[Range(0f, 1f)]
|
||||
public float handPositionWeight;
|
||||
|
||||
// Token: 0x04002C38 RID: 11320
|
||||
[FieldOffset(Offset = "0x84")]
|
||||
[Token(Token = "0x4002C38")]
|
||||
[Range(0f, 1f)]
|
||||
public float handRotationWeight;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003E2 RID: 994
|
||||
[Token(Token = "0x20003E2")]
|
||||
public abstract class CharacterAnimationBase : MonoBehaviour
|
||||
{
|
||||
// Token: 0x060023DF RID: 9183 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023DF")]
|
||||
[Address(RVA = "0xE82120", Offset = "0xE80F20", VA = "0x180E82120", Slot = "4")]
|
||||
public virtual Vector3 GetPivotPoint()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x17000207 RID: 519
|
||||
// (get) Token: 0x060023E0 RID: 9184 RVA: 0x00051EA8 File Offset: 0x000500A8
|
||||
[Token(Token = "0x17000207")]
|
||||
public virtual bool animationGrounded
|
||||
{
|
||||
[Token(Token = "0x60023E0")]
|
||||
[Address(RVA = "0x454840", Offset = "0x453640", VA = "0x180454840", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060023E1 RID: 9185 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023E1")]
|
||||
[Address(RVA = "0xE820B0", Offset = "0xE80EB0", VA = "0x180E820B0")]
|
||||
public float GetAngleFromForward(Vector3 worldDirection)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023E2 RID: 9186 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023E2")]
|
||||
[Address(RVA = "0xE823D0", Offset = "0xE811D0", VA = "0x180E823D0", Slot = "6")]
|
||||
protected virtual void Start()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023E3 RID: 9187 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023E3")]
|
||||
[Address(RVA = "0xE82170", Offset = "0xE80F70", VA = "0x180E82170", Slot = "7")]
|
||||
protected virtual void LateUpdate()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023E4 RID: 9188 RVA: 0x00051EB8 File Offset: 0x000500B8
|
||||
[Token(Token = "0x60023E4")]
|
||||
[Address(RVA = "0xE82660", Offset = "0xE81460", VA = "0x180E82660")]
|
||||
protected CharacterAnimationBase()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002D73 RID: 11635
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002D73")]
|
||||
public bool smoothFollow = true;
|
||||
|
||||
// Token: 0x04002D74 RID: 11636
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4002D74")]
|
||||
public float smoothFollowSpeed = 20f;
|
||||
|
||||
// Token: 0x04002D75 RID: 11637
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002D75")]
|
||||
private Vector3 lastPosition;
|
||||
|
||||
// Token: 0x04002D76 RID: 11638
|
||||
[FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x4002D76")]
|
||||
private Vector3 localPosition;
|
||||
|
||||
// Token: 0x04002D77 RID: 11639
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002D77")]
|
||||
private Quaternion localRotation;
|
||||
|
||||
// Token: 0x04002D78 RID: 11640
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002D78")]
|
||||
private Quaternion lastRotation;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003E3 RID: 995
|
||||
[Token(Token = "0x20003E3")]
|
||||
[RequireComponent(typeof(Animator))]
|
||||
public class CharacterAnimationSimple : CharacterAnimationBase
|
||||
{
|
||||
// Token: 0x060023E5 RID: 9189 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023E5")]
|
||||
[Address(RVA = "0xE827C0", Offset = "0xE815C0", VA = "0x180E827C0", Slot = "6")]
|
||||
protected override void Start()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023E6 RID: 9190 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023E6")]
|
||||
[Address(RVA = "0xE82680", Offset = "0xE81480", VA = "0x180E82680", Slot = "4")]
|
||||
public override Vector3 GetPivotPoint()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023E7 RID: 9191 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023E7")]
|
||||
[Address(RVA = "0xE82820", Offset = "0xE81620", VA = "0x180E82820")]
|
||||
private void Update()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023E8 RID: 9192 RVA: 0x00051EE0 File Offset: 0x000500E0
|
||||
[Token(Token = "0x60023E8")]
|
||||
[Address(RVA = "0xE82660", Offset = "0xE81460", VA = "0x180E82660")]
|
||||
public CharacterAnimationSimple()
|
||||
{
|
||||
this.smoothFollow = true;
|
||||
this.smoothFollowSpeed = 20f;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04002D79 RID: 11641
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4002D79")]
|
||||
[SerializeField]
|
||||
private CharacterThirdPerson characterController;
|
||||
|
||||
// Token: 0x04002D7A RID: 11642
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4002D7A")]
|
||||
[SerializeField]
|
||||
private float pivotOffset;
|
||||
|
||||
// Token: 0x04002D7B RID: 11643
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4002D7B")]
|
||||
[SerializeField]
|
||||
private AnimationCurve moveSpeed;
|
||||
|
||||
// Token: 0x04002D7C RID: 11644
|
||||
[FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x4002D7C")]
|
||||
private Animator animator;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003E4 RID: 996
|
||||
[Token(Token = "0x20003E4")]
|
||||
[RequireComponent(typeof(Animator))]
|
||||
public class CharacterAnimationThirdPerson : CharacterAnimationBase
|
||||
{
|
||||
// Token: 0x060023E9 RID: 9193 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023E9")]
|
||||
[Address(RVA = "0xE82FA0", Offset = "0xE81DA0", VA = "0x180E82FA0", Slot = "6")]
|
||||
protected override void Start()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023EA RID: 9194 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023EA")]
|
||||
[Address(RVA = "0xE82EC0", Offset = "0xE81CC0", VA = "0x180E82EC0", Slot = "4")]
|
||||
public override Vector3 GetPivotPoint()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x17000208 RID: 520
|
||||
// (get) Token: 0x060023EB RID: 9195 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x17000208")]
|
||||
public override bool animationGrounded
|
||||
{
|
||||
[Token(Token = "0x60023EB")]
|
||||
[Address(RVA = "0xE834A0", Offset = "0xE822A0", VA = "0x180E834A0", Slot = "5")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060023EC RID: 9196 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023EC")]
|
||||
[Address(RVA = "0xE83030", Offset = "0xE81E30", VA = "0x180E83030", Slot = "8")]
|
||||
protected virtual void Update()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023ED RID: 9197 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023ED")]
|
||||
[Address(RVA = "0xE82F00", Offset = "0xE81D00", VA = "0x180E82F00")]
|
||||
private void OnAnimatorMove()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023EE RID: 9198 RVA: 0x00051F08 File Offset: 0x00050108
|
||||
[Token(Token = "0x60023EE")]
|
||||
[Address(RVA = "0xE82E90", Offset = "0xE81C90", VA = "0x180E82E90")]
|
||||
public CharacterAnimationThirdPerson()
|
||||
{
|
||||
this.smoothFollow = true;
|
||||
this.smoothFollowSpeed = 20f;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04002D7D RID: 11645
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4002D7D")]
|
||||
public CharacterThirdPerson characterController;
|
||||
|
||||
// Token: 0x04002D7E RID: 11646
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4002D7E")]
|
||||
[SerializeField]
|
||||
private float turnSensitivity = 0.2f;
|
||||
|
||||
// Token: 0x04002D7F RID: 11647
|
||||
[FieldOffset(Offset = "0x64")]
|
||||
[Token(Token = "0x4002D7F")]
|
||||
[SerializeField]
|
||||
private float turnSpeed = 5f;
|
||||
|
||||
// Token: 0x04002D80 RID: 11648
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4002D80")]
|
||||
[SerializeField]
|
||||
private float runCycleLegOffset = 0.2f;
|
||||
|
||||
// Token: 0x04002D81 RID: 11649
|
||||
[FieldOffset(Offset = "0x6C")]
|
||||
[Token(Token = "0x4002D81")]
|
||||
[SerializeField]
|
||||
[Range(0.1f, 3f)]
|
||||
private float animSpeedMultiplier = 1f;
|
||||
|
||||
// Token: 0x04002D82 RID: 11650
|
||||
[FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x4002D82")]
|
||||
protected Animator animator;
|
||||
|
||||
// Token: 0x04002D83 RID: 11651
|
||||
[FieldOffset(Offset = "0x78")]
|
||||
[Token(Token = "0x4002D83")]
|
||||
private Vector3 lastForward;
|
||||
|
||||
// Token: 0x04002D84 RID: 11652
|
||||
[Token(Token = "0x4002D84")]
|
||||
private const string groundedDirectional = "Grounded Directional";
|
||||
|
||||
// Token: 0x04002D85 RID: 11653
|
||||
[Token(Token = "0x4002D85")]
|
||||
private const string groundedStrafe = "Grounded Strafe";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003B4 RID: 948
|
||||
[Token(Token = "0x20003B4")]
|
||||
[RequireComponent(typeof(FullBodyBipedIK))]
|
||||
public class CharacterAnimationThirdPersonIK : CharacterAnimationThirdPerson
|
||||
{
|
||||
// Token: 0x0600232E RID: 9006 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600232E")]
|
||||
[Address(RVA = "0xE82DC0", Offset = "0xE81BC0", VA = "0x180E82DC0", Slot = "6")]
|
||||
protected override void Start()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600232F RID: 9007 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600232F")]
|
||||
[Address(RVA = "0xE829A0", Offset = "0xE817A0", VA = "0x180E829A0", Slot = "7")]
|
||||
protected override void LateUpdate()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002330 RID: 9008 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002330")]
|
||||
[Address(RVA = "0xE82C00", Offset = "0xE81A00", VA = "0x180E82C00")]
|
||||
private void RotateEffector(IKEffector effector, Quaternion rotation, float mlp)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002331 RID: 9009 RVA: 0x00050AAC File Offset: 0x0004ECAC
|
||||
[Token(Token = "0x6002331")]
|
||||
[Address(RVA = "0xE82E90", Offset = "0xE81C90", VA = "0x180E82E90")]
|
||||
public CharacterAnimationThirdPersonIK()
|
||||
{
|
||||
this.turnSensitivity = 0.2f;
|
||||
this.turnSpeed = 5f;
|
||||
this.runCycleLegOffset = 0.2f;
|
||||
this.animSpeedMultiplier = 1f;
|
||||
this.smoothFollow = true;
|
||||
this.smoothFollowSpeed = 20f;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04002C86 RID: 11398
|
||||
[FieldOffset(Offset = "0x88")]
|
||||
[Token(Token = "0x4002C86")]
|
||||
private FullBodyBipedIK ik;
|
||||
}
|
||||
}
|
||||
179
Cpp2IL/Assembly-CSharp/RootMotion/Demos/CharacterBase.cs
Normal file
179
Cpp2IL/Assembly-CSharp/RootMotion/Demos/CharacterBase.cs
Normal file
@@ -0,0 +1,179 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003E5 RID: 997
|
||||
[Token(Token = "0x20003E5")]
|
||||
[RequireComponent(typeof(Rigidbody))]
|
||||
[RequireComponent(typeof(CapsuleCollider))]
|
||||
public abstract class CharacterBase : MonoBehaviour
|
||||
{
|
||||
// Token: 0x060023EF RID: 9199
|
||||
[Token(Token = "0x60023EF")]
|
||||
[Address(Slot = "4")]
|
||||
public abstract void Move(Vector3 deltaPosition, Quaternion deltaRotation);
|
||||
|
||||
// Token: 0x060023F0 RID: 9200 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023F0")]
|
||||
[Address(RVA = "0xE83F50", Offset = "0xE82D50", VA = "0x180E83F50")]
|
||||
protected Vector3 GetGravity()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023F1 RID: 9201 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023F1")]
|
||||
[Address(RVA = "0xE848A0", Offset = "0xE836A0", VA = "0x180E848A0", Slot = "5")]
|
||||
protected virtual void Start()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023F2 RID: 9202 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023F2")]
|
||||
[Address(RVA = "0xE841A0", Offset = "0xE82FA0", VA = "0x180E841A0", Slot = "6")]
|
||||
protected virtual RaycastHit GetSpherecastHit()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023F3 RID: 9203 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023F3")]
|
||||
[Address(RVA = "0xE820B0", Offset = "0xE80EB0", VA = "0x180E820B0")]
|
||||
public float GetAngleFromForward(Vector3 worldDirection)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023F4 RID: 9204 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023F4")]
|
||||
[Address(RVA = "0xE844B0", Offset = "0xE832B0", VA = "0x180E844B0")]
|
||||
protected void RigidbodyRotateAround(Vector3 point, Vector3 axis, float angle)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023F5 RID: 9205 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023F5")]
|
||||
[Address(RVA = "0xE846E0", Offset = "0xE834E0", VA = "0x180E846E0")]
|
||||
protected void ScaleCapsule(float mlp)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023F6 RID: 9206 RVA: 0x00051F5C File Offset: 0x0005015C
|
||||
[Token(Token = "0x60023F6")]
|
||||
[Address(RVA = "0xE84480", Offset = "0xE83280", VA = "0x180E84480")]
|
||||
protected void HighFriction()
|
||||
{
|
||||
CapsuleCollider capsuleCollider = this.capsule;
|
||||
PhysicMaterial physicMaterial = this.highFrictionMaterial;
|
||||
capsuleCollider.material = physicMaterial;
|
||||
}
|
||||
|
||||
// Token: 0x060023F7 RID: 9207 RVA: 0x00051F84 File Offset: 0x00050184
|
||||
[Token(Token = "0x60023F7")]
|
||||
[Address(RVA = "0xE84AB0", Offset = "0xE838B0", VA = "0x180E84AB0")]
|
||||
protected void ZeroFriction()
|
||||
{
|
||||
CapsuleCollider capsuleCollider = this.capsule;
|
||||
PhysicMaterial physicMaterial = this.zeroFrictionMaterial;
|
||||
capsuleCollider.material = physicMaterial;
|
||||
}
|
||||
|
||||
// Token: 0x060023F8 RID: 9208 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023F8")]
|
||||
[Address(RVA = "0xE84110", Offset = "0xE82F10", VA = "0x180E84110")]
|
||||
protected float GetSlopeDamper(Vector3 velocity, Vector3 groundNormal)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023F9 RID: 9209 RVA: 0x00051FAC File Offset: 0x000501AC
|
||||
[Token(Token = "0x60023F9")]
|
||||
[Address(RVA = "0xE84AE0", Offset = "0xE838E0", VA = "0x180E84AE0")]
|
||||
protected CharacterBase()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002D86 RID: 11654
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002D86")]
|
||||
[Header("Base Parameters")]
|
||||
[Tooltip("If specified, will use the direction from the character to this Transform as the gravity vector instead of Physics.gravity. Physics.gravity.magnitude will be used as the magnitude of the gravity vector.")]
|
||||
public Transform gravityTarget;
|
||||
|
||||
// Token: 0x04002D87 RID: 11655
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002D87")]
|
||||
[SerializeField]
|
||||
[Tooltip("Multiplies gravity applied to the character even if 'Individual Gravity' is unchecked.")]
|
||||
protected float gravityMultiplier = 2f;
|
||||
|
||||
// Token: 0x04002D88 RID: 11656
|
||||
[FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x4002D88")]
|
||||
[SerializeField]
|
||||
protected float airborneThreshold = 0.6f;
|
||||
|
||||
// Token: 0x04002D89 RID: 11657
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002D89")]
|
||||
[SerializeField]
|
||||
private float slopeStartAngle = 50f;
|
||||
|
||||
// Token: 0x04002D8A RID: 11658
|
||||
[FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x4002D8A")]
|
||||
[SerializeField]
|
||||
private float slopeEndAngle = 85f;
|
||||
|
||||
// Token: 0x04002D8B RID: 11659
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002D8B")]
|
||||
[SerializeField]
|
||||
private float spherecastRadius = 0.1f;
|
||||
|
||||
// Token: 0x04002D8C RID: 11660
|
||||
[FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x4002D8C")]
|
||||
[SerializeField]
|
||||
private LayerMask groundLayers;
|
||||
|
||||
// Token: 0x04002D8D RID: 11661
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002D8D")]
|
||||
private PhysicMaterial zeroFrictionMaterial;
|
||||
|
||||
// Token: 0x04002D8E RID: 11662
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002D8E")]
|
||||
private PhysicMaterial highFrictionMaterial;
|
||||
|
||||
// Token: 0x04002D8F RID: 11663
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002D8F")]
|
||||
protected Rigidbody r;
|
||||
|
||||
// Token: 0x04002D90 RID: 11664
|
||||
[Token(Token = "0x4002D90")]
|
||||
protected const float half = 0.5f;
|
||||
|
||||
// Token: 0x04002D91 RID: 11665
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4002D91")]
|
||||
protected float originalHeight;
|
||||
|
||||
// Token: 0x04002D92 RID: 11666
|
||||
[FieldOffset(Offset = "0x54")]
|
||||
[Token(Token = "0x4002D92")]
|
||||
protected Vector3 originalCenter;
|
||||
|
||||
// Token: 0x04002D93 RID: 11667
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4002D93")]
|
||||
protected CapsuleCollider capsule;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003B5 RID: 949
|
||||
[Token(Token = "0x20003B5")]
|
||||
[RequireComponent(typeof(AnimatorController3rdPerson))]
|
||||
public class CharacterController3rdPerson : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002332 RID: 9010 RVA: 0x00050B00 File Offset: 0x0004ED00
|
||||
[Token(Token = "0x6002332")]
|
||||
[Address(RVA = "0xE84E30", Offset = "0xE83C30", VA = "0x180E84E30")]
|
||||
private void Start()
|
||||
{
|
||||
AnimatorController3rdPerson component = base.GetComponent<AnimatorController3rdPerson>();
|
||||
this.animatorController = component;
|
||||
CameraController cameraController = this.cam;
|
||||
int num = 0;
|
||||
cameraController.enabled = num != 0;
|
||||
}
|
||||
|
||||
// Token: 0x06002333 RID: 9011 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002333")]
|
||||
[Address(RVA = "0xE84B10", Offset = "0xE83910", VA = "0x180E84B10")]
|
||||
private void LateUpdate()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x170001FB RID: 507
|
||||
// (get) Token: 0x06002334 RID: 9012 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x170001FB")]
|
||||
private static Vector3 inputVector
|
||||
{
|
||||
[Token(Token = "0x6002334")]
|
||||
[Address(RVA = "0xE84F20", Offset = "0xE83D20", VA = "0x180E84F20")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001FC RID: 508
|
||||
// (get) Token: 0x06002335 RID: 9013 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x170001FC")]
|
||||
private static Vector3 inputVectorRaw
|
||||
{
|
||||
[Token(Token = "0x6002335")]
|
||||
[Address(RVA = "0xE84EA0", Offset = "0xE83CA0", VA = "0x180E84EA0")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06002336 RID: 9014 RVA: 0x00050B34 File Offset: 0x0004ED34
|
||||
[Token(Token = "0x6002336")]
|
||||
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
|
||||
public CharacterController3rdPerson()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002C87 RID: 11399
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002C87")]
|
||||
[SerializeField]
|
||||
private CameraController cam;
|
||||
|
||||
// Token: 0x04002C88 RID: 11400
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002C88")]
|
||||
private AnimatorController3rdPerson animatorController;
|
||||
}
|
||||
}
|
||||
475
Cpp2IL/Assembly-CSharp/RootMotion/Demos/CharacterThirdPerson.cs
Normal file
475
Cpp2IL/Assembly-CSharp/RootMotion/Demos/CharacterThirdPerson.cs
Normal file
@@ -0,0 +1,475 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003E6 RID: 998
|
||||
[Token(Token = "0x20003E6")]
|
||||
public class CharacterThirdPerson : CharacterBase
|
||||
{
|
||||
// Token: 0x17000209 RID: 521
|
||||
// (get) Token: 0x060023FA RID: 9210 RVA: 0x00051FF8 File Offset: 0x000501F8
|
||||
// (set) Token: 0x060023FB RID: 9211 RVA: 0x0005200C File Offset: 0x0005020C
|
||||
[Token(Token = "0x17000209")]
|
||||
public bool onGround
|
||||
{
|
||||
[Token(Token = "0x60023FA")]
|
||||
[Address(RVA = "0xE88840", Offset = "0xE87640", VA = "0x180E88840")]
|
||||
get;
|
||||
[Token(Token = "0x60023FB")]
|
||||
[Address(RVA = "0xE88850", Offset = "0xE87650", VA = "0x180E88850")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x060023FC RID: 9212 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023FC")]
|
||||
[Address(RVA = "0xE87C30", Offset = "0xE86A30", VA = "0x180E87C30", Slot = "5")]
|
||||
protected override void Start()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023FD RID: 9213 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023FD")]
|
||||
[Address(RVA = "0xE875A0", Offset = "0xE863A0", VA = "0x180E875A0")]
|
||||
private void OnAnimatorMove()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023FE RID: 9214 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023FE")]
|
||||
[Address(RVA = "0xE874B0", Offset = "0xE862B0", VA = "0x180E874B0", Slot = "4")]
|
||||
public override void Move(Vector3 deltaPosition, Quaternion deltaRotation)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023FF RID: 9215 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023FF")]
|
||||
[Address(RVA = "0xE85790", Offset = "0xE84590", VA = "0x180E85790")]
|
||||
private void FixedUpdate()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002400 RID: 9216 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002400")]
|
||||
[Address(RVA = "0xE87DD0", Offset = "0xE86BD0", VA = "0x180E87DD0", Slot = "7")]
|
||||
protected virtual void Update()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002401 RID: 9217 RVA: 0x00052020 File Offset: 0x00050220
|
||||
[Token(Token = "0x6002401")]
|
||||
[Address(RVA = "0xE86CB0", Offset = "0xE85AB0", VA = "0x180E86CB0", Slot = "8")]
|
||||
protected virtual void LateUpdate()
|
||||
{
|
||||
CameraController cameraController = this.cam;
|
||||
int num = 0;
|
||||
if (!(cameraController == num))
|
||||
{
|
||||
this.cam.UpdateInput();
|
||||
if (this.fixedFrame || this.r.interpolation != RigidbodyInterpolation.None)
|
||||
{
|
||||
Rigidbody r = this.r;
|
||||
CameraController cameraController2 = this.cam;
|
||||
RigidbodyInterpolation interpolation = r.interpolation;
|
||||
if (interpolation == RigidbodyInterpolation.None)
|
||||
{
|
||||
float fixedDeltaTime = Time.fixedDeltaTime;
|
||||
}
|
||||
float deltaTime = Time.deltaTime;
|
||||
cameraController2.UpdateTransform(deltaTime);
|
||||
this.fixedFrame = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06002402 RID: 9218 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002402")]
|
||||
[Address(RVA = "0xE86D90", Offset = "0xE85B90", VA = "0x180E86D90")]
|
||||
private void MoveFixed(Vector3 deltaPosition)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002403 RID: 9219 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002403")]
|
||||
[Address(RVA = "0xE87E90", Offset = "0xE86C90", VA = "0x180E87E90")]
|
||||
private void WallRun()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002404 RID: 9220 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002404")]
|
||||
[Address(RVA = "0xE856F0", Offset = "0xE844F0", VA = "0x180E856F0")]
|
||||
private bool CanWallRun()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002405 RID: 9221 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002405")]
|
||||
[Address(RVA = "0xE862A0", Offset = "0xE850A0", VA = "0x180E862A0")]
|
||||
private Vector3 GetMoveDirection()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002406 RID: 9222 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002406")]
|
||||
[Address(RVA = "0xE87640", Offset = "0xE86440", VA = "0x180E87640", Slot = "9")]
|
||||
protected virtual void Rotate()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002407 RID: 9223 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002407")]
|
||||
[Address(RVA = "0xE86090", Offset = "0xE84E90", VA = "0x180E86090")]
|
||||
private Vector3 GetForwardDirection()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002408 RID: 9224 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002408")]
|
||||
[Address(RVA = "0xE86A90", Offset = "0xE85890", VA = "0x180E86A90", Slot = "10")]
|
||||
protected virtual bool Jump()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002409 RID: 9225 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002409")]
|
||||
[Address(RVA = "0xE865A0", Offset = "0xE853A0", VA = "0x180E865A0")]
|
||||
private void GroundCheck()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600240A RID: 9226 RVA: 0x000520A4 File Offset: 0x000502A4
|
||||
[Token(Token = "0x600240A")]
|
||||
[Address(RVA = "0xE88730", Offset = "0xE87530", VA = "0x180E88730")]
|
||||
public CharacterThirdPerson()
|
||||
{
|
||||
float z = Vector3.up.z;
|
||||
this.wallNormal.z = z;
|
||||
this.gravityMultiplier = 2f;
|
||||
this.airborneThreshold = 0.6f;
|
||||
this.slopeStartAngle = 50f;
|
||||
this.slopeEndAngle = 85f;
|
||||
this.spherecastRadius = 0.1f;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04002D94 RID: 11668
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4002D94")]
|
||||
[Header("References")]
|
||||
public CharacterAnimationBase characterAnimation;
|
||||
|
||||
// Token: 0x04002D95 RID: 11669
|
||||
[FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x4002D95")]
|
||||
public UserControlThirdPerson userControl;
|
||||
|
||||
// Token: 0x04002D96 RID: 11670
|
||||
[FieldOffset(Offset = "0x78")]
|
||||
[Token(Token = "0x4002D96")]
|
||||
public CameraController cam;
|
||||
|
||||
// Token: 0x04002D97 RID: 11671
|
||||
[FieldOffset(Offset = "0x80")]
|
||||
[Token(Token = "0x4002D97")]
|
||||
[Header("Movement")]
|
||||
public CharacterThirdPerson.MoveMode moveMode;
|
||||
|
||||
// Token: 0x04002D98 RID: 11672
|
||||
[FieldOffset(Offset = "0x84")]
|
||||
[Token(Token = "0x4002D98")]
|
||||
public bool smoothPhysics = true;
|
||||
|
||||
// Token: 0x04002D99 RID: 11673
|
||||
[FieldOffset(Offset = "0x88")]
|
||||
[Token(Token = "0x4002D99")]
|
||||
public float smoothAccelerationTime = 0.2f;
|
||||
|
||||
// Token: 0x04002D9A RID: 11674
|
||||
[FieldOffset(Offset = "0x8C")]
|
||||
[Token(Token = "0x4002D9A")]
|
||||
public float linearAccelerationSpeed = 3f;
|
||||
|
||||
// Token: 0x04002D9B RID: 11675
|
||||
[FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x4002D9B")]
|
||||
public float platformFriction = 7f;
|
||||
|
||||
// Token: 0x04002D9C RID: 11676
|
||||
[FieldOffset(Offset = "0x94")]
|
||||
[Token(Token = "0x4002D9C")]
|
||||
public float groundStickyEffect = 4f;
|
||||
|
||||
// Token: 0x04002D9D RID: 11677
|
||||
[FieldOffset(Offset = "0x98")]
|
||||
[Token(Token = "0x4002D9D")]
|
||||
public float maxVerticalVelocityOnGround = 3f;
|
||||
|
||||
// Token: 0x04002D9E RID: 11678
|
||||
[FieldOffset(Offset = "0x9C")]
|
||||
[Token(Token = "0x4002D9E")]
|
||||
public float velocityToGroundTangentWeight;
|
||||
|
||||
// Token: 0x04002D9F RID: 11679
|
||||
[FieldOffset(Offset = "0xA0")]
|
||||
[Token(Token = "0x4002D9F")]
|
||||
[Header("Rotation")]
|
||||
public bool lookInCameraDirection;
|
||||
|
||||
// Token: 0x04002DA0 RID: 11680
|
||||
[FieldOffset(Offset = "0xA4")]
|
||||
[Token(Token = "0x4002DA0")]
|
||||
public float turnSpeed = 5f;
|
||||
|
||||
// Token: 0x04002DA1 RID: 11681
|
||||
[FieldOffset(Offset = "0xA8")]
|
||||
[Token(Token = "0x4002DA1")]
|
||||
public float stationaryTurnSpeedMlp = 1f;
|
||||
|
||||
// Token: 0x04002DA2 RID: 11682
|
||||
[FieldOffset(Offset = "0xAC")]
|
||||
[Token(Token = "0x4002DA2")]
|
||||
[Header("Jumping and Falling")]
|
||||
public float airSpeed = 6f;
|
||||
|
||||
// Token: 0x04002DA3 RID: 11683
|
||||
[FieldOffset(Offset = "0xB0")]
|
||||
[Token(Token = "0x4002DA3")]
|
||||
public float airControl = 2f;
|
||||
|
||||
// Token: 0x04002DA4 RID: 11684
|
||||
[FieldOffset(Offset = "0xB4")]
|
||||
[Token(Token = "0x4002DA4")]
|
||||
public float jumpPower = 12f;
|
||||
|
||||
// Token: 0x04002DA5 RID: 11685
|
||||
[FieldOffset(Offset = "0xB8")]
|
||||
[Token(Token = "0x4002DA5")]
|
||||
public float jumpRepeatDelayTime;
|
||||
|
||||
// Token: 0x04002DA6 RID: 11686
|
||||
[FieldOffset(Offset = "0xBC")]
|
||||
[Token(Token = "0x4002DA6")]
|
||||
[SerializeField]
|
||||
[Header("Wall Running")]
|
||||
private LayerMask wallRunLayers;
|
||||
|
||||
// Token: 0x04002DA7 RID: 11687
|
||||
[FieldOffset(Offset = "0xC0")]
|
||||
[Token(Token = "0x4002DA7")]
|
||||
public float wallRunMaxLength = 1f;
|
||||
|
||||
// Token: 0x04002DA8 RID: 11688
|
||||
[FieldOffset(Offset = "0xC4")]
|
||||
[Token(Token = "0x4002DA8")]
|
||||
public float wallRunMinMoveMag = 0.6f;
|
||||
|
||||
// Token: 0x04002DA9 RID: 11689
|
||||
[FieldOffset(Offset = "0xC8")]
|
||||
[Token(Token = "0x4002DA9")]
|
||||
public float wallRunMinVelocityY = -1f;
|
||||
|
||||
// Token: 0x04002DAA RID: 11690
|
||||
[FieldOffset(Offset = "0xCC")]
|
||||
[Token(Token = "0x4002DAA")]
|
||||
public float wallRunRotationSpeed = 1.5f;
|
||||
|
||||
// Token: 0x04002DAB RID: 11691
|
||||
[FieldOffset(Offset = "0xD0")]
|
||||
[Token(Token = "0x4002DAB")]
|
||||
public float wallRunMaxRotationAngle = 70f;
|
||||
|
||||
// Token: 0x04002DAC RID: 11692
|
||||
[FieldOffset(Offset = "0xD4")]
|
||||
[Token(Token = "0x4002DAC")]
|
||||
public float wallRunWeightSpeed = 5f;
|
||||
|
||||
// Token: 0x04002DAD RID: 11693
|
||||
[FieldOffset(Offset = "0xD8")]
|
||||
[Token(Token = "0x4002DAD")]
|
||||
[Header("Crouching")]
|
||||
public float crouchCapsuleScaleMlp = 0.6f;
|
||||
|
||||
// Token: 0x04002DAF RID: 11695
|
||||
[FieldOffset(Offset = "0xE0")]
|
||||
[Token(Token = "0x4002DAF")]
|
||||
public CharacterThirdPerson.AnimState animState;
|
||||
|
||||
// Token: 0x04002DB0 RID: 11696
|
||||
[FieldOffset(Offset = "0xF4")]
|
||||
[Token(Token = "0x4002DB0")]
|
||||
protected Vector3 moveDirection;
|
||||
|
||||
// Token: 0x04002DB1 RID: 11697
|
||||
[FieldOffset(Offset = "0x100")]
|
||||
[Token(Token = "0x4002DB1")]
|
||||
private Animator animator;
|
||||
|
||||
// Token: 0x04002DB2 RID: 11698
|
||||
[FieldOffset(Offset = "0x108")]
|
||||
[Token(Token = "0x4002DB2")]
|
||||
private Vector3 normal;
|
||||
|
||||
// Token: 0x04002DB3 RID: 11699
|
||||
[FieldOffset(Offset = "0x114")]
|
||||
[Token(Token = "0x4002DB3")]
|
||||
private Vector3 platformVelocity;
|
||||
|
||||
// Token: 0x04002DB4 RID: 11700
|
||||
[FieldOffset(Offset = "0x120")]
|
||||
[Token(Token = "0x4002DB4")]
|
||||
private Vector3 platformAngularVelocity;
|
||||
|
||||
// Token: 0x04002DB5 RID: 11701
|
||||
[FieldOffset(Offset = "0x12C")]
|
||||
[Token(Token = "0x4002DB5")]
|
||||
private RaycastHit hit;
|
||||
|
||||
// Token: 0x04002DB6 RID: 11702
|
||||
[FieldOffset(Offset = "0x158")]
|
||||
[Token(Token = "0x4002DB6")]
|
||||
private float jumpLeg;
|
||||
|
||||
// Token: 0x04002DB7 RID: 11703
|
||||
[FieldOffset(Offset = "0x15C")]
|
||||
[Token(Token = "0x4002DB7")]
|
||||
private float jumpEndTime;
|
||||
|
||||
// Token: 0x04002DB8 RID: 11704
|
||||
[FieldOffset(Offset = "0x160")]
|
||||
[Token(Token = "0x4002DB8")]
|
||||
private float forwardMlp;
|
||||
|
||||
// Token: 0x04002DB9 RID: 11705
|
||||
[FieldOffset(Offset = "0x164")]
|
||||
[Token(Token = "0x4002DB9")]
|
||||
private float groundDistance;
|
||||
|
||||
// Token: 0x04002DBA RID: 11706
|
||||
[FieldOffset(Offset = "0x168")]
|
||||
[Token(Token = "0x4002DBA")]
|
||||
private float lastAirTime;
|
||||
|
||||
// Token: 0x04002DBB RID: 11707
|
||||
[FieldOffset(Offset = "0x16C")]
|
||||
[Token(Token = "0x4002DBB")]
|
||||
private float stickyForce;
|
||||
|
||||
// Token: 0x04002DBC RID: 11708
|
||||
[FieldOffset(Offset = "0x170")]
|
||||
[Token(Token = "0x4002DBC")]
|
||||
private Vector3 wallNormal;
|
||||
|
||||
// Token: 0x04002DBD RID: 11709
|
||||
[FieldOffset(Offset = "0x17C")]
|
||||
[Token(Token = "0x4002DBD")]
|
||||
private Vector3 moveDirectionVelocity;
|
||||
|
||||
// Token: 0x04002DBE RID: 11710
|
||||
[FieldOffset(Offset = "0x188")]
|
||||
[Token(Token = "0x4002DBE")]
|
||||
private float wallRunWeight;
|
||||
|
||||
// Token: 0x04002DBF RID: 11711
|
||||
[FieldOffset(Offset = "0x18C")]
|
||||
[Token(Token = "0x4002DBF")]
|
||||
private float lastWallRunWeight;
|
||||
|
||||
// Token: 0x04002DC0 RID: 11712
|
||||
[FieldOffset(Offset = "0x190")]
|
||||
[Token(Token = "0x4002DC0")]
|
||||
private Vector3 fixedDeltaPosition;
|
||||
|
||||
// Token: 0x04002DC1 RID: 11713
|
||||
[FieldOffset(Offset = "0x19C")]
|
||||
[Token(Token = "0x4002DC1")]
|
||||
private Quaternion fixedDeltaRotation;
|
||||
|
||||
// Token: 0x04002DC2 RID: 11714
|
||||
[FieldOffset(Offset = "0x1AC")]
|
||||
[Token(Token = "0x4002DC2")]
|
||||
private bool fixedFrame;
|
||||
|
||||
// Token: 0x04002DC3 RID: 11715
|
||||
[FieldOffset(Offset = "0x1B0")]
|
||||
[Token(Token = "0x4002DC3")]
|
||||
private float wallRunEndTime;
|
||||
|
||||
// Token: 0x04002DC4 RID: 11716
|
||||
[FieldOffset(Offset = "0x1B4")]
|
||||
[Token(Token = "0x4002DC4")]
|
||||
private Vector3 gravity;
|
||||
|
||||
// Token: 0x04002DC5 RID: 11717
|
||||
[FieldOffset(Offset = "0x1C0")]
|
||||
[Token(Token = "0x4002DC5")]
|
||||
private Vector3 verticalVelocity;
|
||||
|
||||
// Token: 0x04002DC6 RID: 11718
|
||||
[FieldOffset(Offset = "0x1CC")]
|
||||
[Token(Token = "0x4002DC6")]
|
||||
private float velocityY;
|
||||
|
||||
// Token: 0x020003E7 RID: 999
|
||||
[Token(Token = "0x20003E7")]
|
||||
[Serializable]
|
||||
public enum MoveMode
|
||||
{
|
||||
// Token: 0x04002DC8 RID: 11720
|
||||
[Token(Token = "0x4002DC8")]
|
||||
Directional,
|
||||
// Token: 0x04002DC9 RID: 11721
|
||||
[Token(Token = "0x4002DC9")]
|
||||
Strafe
|
||||
}
|
||||
|
||||
// Token: 0x020003E8 RID: 1000
|
||||
[Token(Token = "0x20003E8")]
|
||||
public struct AnimState
|
||||
{
|
||||
// Token: 0x04002DCA RID: 11722
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4002DCA")]
|
||||
public Vector3 moveDirection;
|
||||
|
||||
// Token: 0x04002DCB RID: 11723
|
||||
[FieldOffset(Offset = "0xC")]
|
||||
[Token(Token = "0x4002DCB")]
|
||||
public bool jump;
|
||||
|
||||
// Token: 0x04002DCC RID: 11724
|
||||
[FieldOffset(Offset = "0xD")]
|
||||
[Token(Token = "0x4002DCC")]
|
||||
public bool crouch;
|
||||
|
||||
// Token: 0x04002DCD RID: 11725
|
||||
[FieldOffset(Offset = "0xE")]
|
||||
[Token(Token = "0x4002DCD")]
|
||||
public bool onGround;
|
||||
|
||||
// Token: 0x04002DCE RID: 11726
|
||||
[FieldOffset(Offset = "0xF")]
|
||||
[Token(Token = "0x4002DCE")]
|
||||
public bool isStrafing;
|
||||
|
||||
// Token: 0x04002DCF RID: 11727
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4002DCF")]
|
||||
public float yVelocity;
|
||||
}
|
||||
}
|
||||
}
|
||||
78
Cpp2IL/Assembly-CSharp/RootMotion/Demos/EffectorOffset.cs
Normal file
78
Cpp2IL/Assembly-CSharp/RootMotion/Demos/EffectorOffset.cs
Normal file
@@ -0,0 +1,78 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003B6 RID: 950
|
||||
[Token(Token = "0x20003B6")]
|
||||
public class EffectorOffset : OffsetModifier
|
||||
{
|
||||
// Token: 0x06002337 RID: 9015 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002337")]
|
||||
[Address(RVA = "0xA61E10", Offset = "0xA60C10", VA = "0x180A61E10", Slot = "4")]
|
||||
protected override void OnModifyOffset()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002338 RID: 9016 RVA: 0x00050B48 File Offset: 0x0004ED48
|
||||
[Token(Token = "0x6002338")]
|
||||
[Address(RVA = "0x8CD260", Offset = "0x8CC060", VA = "0x1808CD260")]
|
||||
public EffectorOffset()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002C89 RID: 11401
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002C89")]
|
||||
[Range(0f, 1f)]
|
||||
public float handsMaintainRelativePositionWeight;
|
||||
|
||||
// Token: 0x04002C8A RID: 11402
|
||||
[FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x4002C8A")]
|
||||
public Vector3 bodyOffset;
|
||||
|
||||
// Token: 0x04002C8B RID: 11403
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002C8B")]
|
||||
public Vector3 leftShoulderOffset;
|
||||
|
||||
// Token: 0x04002C8C RID: 11404
|
||||
[FieldOffset(Offset = "0x4C")]
|
||||
[Token(Token = "0x4002C8C")]
|
||||
public Vector3 rightShoulderOffset;
|
||||
|
||||
// Token: 0x04002C8D RID: 11405
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4002C8D")]
|
||||
public Vector3 leftThighOffset;
|
||||
|
||||
// Token: 0x04002C8E RID: 11406
|
||||
[FieldOffset(Offset = "0x64")]
|
||||
[Token(Token = "0x4002C8E")]
|
||||
public Vector3 rightThighOffset;
|
||||
|
||||
// Token: 0x04002C8F RID: 11407
|
||||
[FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x4002C8F")]
|
||||
public Vector3 leftHandOffset;
|
||||
|
||||
// Token: 0x04002C90 RID: 11408
|
||||
[FieldOffset(Offset = "0x7C")]
|
||||
[Token(Token = "0x4002C90")]
|
||||
public Vector3 rightHandOffset;
|
||||
|
||||
// Token: 0x04002C91 RID: 11409
|
||||
[FieldOffset(Offset = "0x88")]
|
||||
[Token(Token = "0x4002C91")]
|
||||
public Vector3 leftFootOffset;
|
||||
|
||||
// Token: 0x04002C92 RID: 11410
|
||||
[FieldOffset(Offset = "0x94")]
|
||||
[Token(Token = "0x4002C92")]
|
||||
public Vector3 rightFootOffset;
|
||||
}
|
||||
}
|
||||
104
Cpp2IL/Assembly-CSharp/RootMotion/Demos/ExplosionDemo.cs
Normal file
104
Cpp2IL/Assembly-CSharp/RootMotion/Demos/ExplosionDemo.cs
Normal file
@@ -0,0 +1,104 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003B7 RID: 951
|
||||
[Token(Token = "0x20003B7")]
|
||||
public class ExplosionDemo : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002339 RID: 9017 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002339")]
|
||||
[Address(RVA = "0xA690C0", Offset = "0xA67EC0", VA = "0x180A690C0")]
|
||||
private void Start()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600233A RID: 9018 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600233A")]
|
||||
[Address(RVA = "0xA69180", Offset = "0xA67F80", VA = "0x180A69180")]
|
||||
private void Update()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600233B RID: 9019 RVA: 0x00050B5C File Offset: 0x0004ED5C
|
||||
[Token(Token = "0x600233B")]
|
||||
[Address(RVA = "0xA69000", Offset = "0xA67E00", VA = "0x180A69000")]
|
||||
private void SetEffectorWeights(float w)
|
||||
{
|
||||
this.ik.solver.leftHandEffector.positionWeight = w;
|
||||
this.ik.solver.rightHandEffector.positionWeight = w;
|
||||
this.ik.solver.leftFootEffector.positionWeight = w;
|
||||
this.ik.solver.rightFootEffector.positionWeight = w;
|
||||
}
|
||||
|
||||
// Token: 0x0600233C RID: 9020 RVA: 0x00050BC8 File Offset: 0x0004EDC8
|
||||
[Token(Token = "0x600233C")]
|
||||
[Address(RVA = "0xA697C0", Offset = "0xA685C0", VA = "0x180A697C0")]
|
||||
public ExplosionDemo()
|
||||
{
|
||||
float z = Vector3.one.z;
|
||||
this.defaultScale.z = z;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04002C93 RID: 11411
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002C93")]
|
||||
public SimpleLocomotion character;
|
||||
|
||||
// Token: 0x04002C94 RID: 11412
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002C94")]
|
||||
public float forceMlp = 1f;
|
||||
|
||||
// Token: 0x04002C95 RID: 11413
|
||||
[FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x4002C95")]
|
||||
public float upForce = 1f;
|
||||
|
||||
// Token: 0x04002C96 RID: 11414
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002C96")]
|
||||
public float weightFalloffSpeed = 1f;
|
||||
|
||||
// Token: 0x04002C97 RID: 11415
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002C97")]
|
||||
public AnimationCurve weightFalloff;
|
||||
|
||||
// Token: 0x04002C98 RID: 11416
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002C98")]
|
||||
public AnimationCurve explosionForceByDistance;
|
||||
|
||||
// Token: 0x04002C99 RID: 11417
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002C99")]
|
||||
public AnimationCurve scale;
|
||||
|
||||
// Token: 0x04002C9A RID: 11418
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002C9A")]
|
||||
private float weight;
|
||||
|
||||
// Token: 0x04002C9B RID: 11419
|
||||
[FieldOffset(Offset = "0x4C")]
|
||||
[Token(Token = "0x4002C9B")]
|
||||
private Vector3 defaultScale;
|
||||
|
||||
// Token: 0x04002C9C RID: 11420
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4002C9C")]
|
||||
private Rigidbody r;
|
||||
|
||||
// Token: 0x04002C9D RID: 11421
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4002C9D")]
|
||||
private FullBodyBipedIK ik;
|
||||
}
|
||||
}
|
||||
153
Cpp2IL/Assembly-CSharp/RootMotion/Demos/FBBIKSettings.cs
Normal file
153
Cpp2IL/Assembly-CSharp/RootMotion/Demos/FBBIKSettings.cs
Normal file
@@ -0,0 +1,153 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003B8 RID: 952
|
||||
[Token(Token = "0x20003B8")]
|
||||
public class FBBIKSettings : MonoBehaviour
|
||||
{
|
||||
// Token: 0x0600233D RID: 9021 RVA: 0x00050C14 File Offset: 0x0004EE14
|
||||
[Token(Token = "0x600233D")]
|
||||
[Address(RVA = "0x4B7980", Offset = "0x4B6780", VA = "0x1804B7980")]
|
||||
public void UpdateSettings()
|
||||
{
|
||||
FullBodyBipedIK fullBodyBipedIK = this.ik;
|
||||
int num = 0;
|
||||
if (!(fullBodyBipedIK == num))
|
||||
{
|
||||
FullBodyBipedIK fullBodyBipedIK2 = this.ik;
|
||||
FBBIKSettings.Limb limb = this.leftArm;
|
||||
IKSolverFullBodyBiped solver = fullBodyBipedIK2.solver;
|
||||
int num2 = 0;
|
||||
limb.Apply((FullBodyBipedChain)num2, solver);
|
||||
FullBodyBipedIK fullBodyBipedIK3 = this.ik;
|
||||
FBBIKSettings.Limb limb2 = this.rightArm;
|
||||
IKSolverFullBodyBiped solver2 = fullBodyBipedIK3.solver;
|
||||
limb2.Apply(FullBodyBipedChain.RightArm, solver2);
|
||||
FullBodyBipedIK fullBodyBipedIK4 = this.ik;
|
||||
FBBIKSettings.Limb limb3 = this.leftLeg;
|
||||
IKSolverFullBodyBiped solver3 = fullBodyBipedIK4.solver;
|
||||
limb3.Apply(FullBodyBipedChain.LeftLeg, solver3);
|
||||
FullBodyBipedIK fullBodyBipedIK5 = this.ik;
|
||||
FBBIKSettings.Limb limb4 = this.rightLeg;
|
||||
IKSolverFullBodyBiped solver4 = fullBodyBipedIK5.solver;
|
||||
limb4.Apply(FullBodyBipedChain.RightLeg, solver4);
|
||||
FBIKChain fbikchain = this.ik.solver.chain[0];
|
||||
float num3 = this.rootPin;
|
||||
fbikchain.pin = num3;
|
||||
IKEffector bodyEffector = this.ik.solver.bodyEffector;
|
||||
bool flag = this.bodyEffectChildNodes;
|
||||
bodyEffector.effectChildNodes = flag;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600233E RID: 9022 RVA: 0x00050D18 File Offset: 0x0004EF18
|
||||
[Token(Token = "0x600233E")]
|
||||
[Address(RVA = "0x4B78F0", Offset = "0x4B66F0", VA = "0x1804B78F0")]
|
||||
private void Start()
|
||||
{
|
||||
Debug.Log("FBBIKSettings is deprecated, you can now edit all the settings from the custom inspector of the FullBodyBipedIK component.");
|
||||
this.UpdateSettings();
|
||||
if (this.disableAfterStart)
|
||||
{
|
||||
int num = 0;
|
||||
base.enabled = num != 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600233F RID: 9023 RVA: 0x00050D48 File Offset: 0x0004EF48
|
||||
[Token(Token = "0x600233F")]
|
||||
[Address(RVA = "0x4B7B00", Offset = "0x4B6900", VA = "0x1804B7B00")]
|
||||
private void Update()
|
||||
{
|
||||
this.UpdateSettings();
|
||||
}
|
||||
|
||||
// Token: 0x06002340 RID: 9024 RVA: 0x00050D5C File Offset: 0x0004EF5C
|
||||
[Token(Token = "0x6002340")]
|
||||
[Address(RVA = "0x4B7B10", Offset = "0x4B6910", VA = "0x1804B7B10")]
|
||||
public FBBIKSettings()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002C9E RID: 11422
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002C9E")]
|
||||
public FullBodyBipedIK ik;
|
||||
|
||||
// Token: 0x04002C9F RID: 11423
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002C9F")]
|
||||
public bool disableAfterStart;
|
||||
|
||||
// Token: 0x04002CA0 RID: 11424
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002CA0")]
|
||||
public FBBIKSettings.Limb leftArm;
|
||||
|
||||
// Token: 0x04002CA1 RID: 11425
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002CA1")]
|
||||
public FBBIKSettings.Limb rightArm;
|
||||
|
||||
// Token: 0x04002CA2 RID: 11426
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002CA2")]
|
||||
public FBBIKSettings.Limb leftLeg;
|
||||
|
||||
// Token: 0x04002CA3 RID: 11427
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002CA3")]
|
||||
public FBBIKSettings.Limb rightLeg;
|
||||
|
||||
// Token: 0x04002CA4 RID: 11428
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002CA4")]
|
||||
public float rootPin;
|
||||
|
||||
// Token: 0x04002CA5 RID: 11429
|
||||
[FieldOffset(Offset = "0x4C")]
|
||||
[Token(Token = "0x4002CA5")]
|
||||
public bool bodyEffectChildNodes = true;
|
||||
|
||||
// Token: 0x020003B9 RID: 953
|
||||
[Token(Token = "0x20003B9")]
|
||||
[Serializable]
|
||||
public class Limb
|
||||
{
|
||||
// Token: 0x06002341 RID: 9025 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002341")]
|
||||
[Address(RVA = "0x5FC9A0", Offset = "0x5FB7A0", VA = "0x1805FC9A0")]
|
||||
public void Apply(FullBodyBipedChain chain, IKSolverFullBodyBiped solver)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002342 RID: 9026 RVA: 0x00050D78 File Offset: 0x0004EF78
|
||||
[Token(Token = "0x6002342")]
|
||||
[Address(RVA = "0x5FCA20", Offset = "0x5FB820", VA = "0x1805FCA20")]
|
||||
public Limb()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002CA6 RID: 11430
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4002CA6")]
|
||||
public FBIKChain.Smoothing reachSmoothing;
|
||||
|
||||
// Token: 0x04002CA7 RID: 11431
|
||||
[FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x4002CA7")]
|
||||
public float maintainRelativePositionWeight;
|
||||
|
||||
// Token: 0x04002CA8 RID: 11432
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002CA8")]
|
||||
public float mappingWeight = 1f;
|
||||
}
|
||||
}
|
||||
}
|
||||
64
Cpp2IL/Assembly-CSharp/RootMotion/Demos/FBIKBendGoal.cs
Normal file
64
Cpp2IL/Assembly-CSharp/RootMotion/Demos/FBIKBendGoal.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003BA RID: 954
|
||||
[Token(Token = "0x20003BA")]
|
||||
public class FBIKBendGoal : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002343 RID: 9027 RVA: 0x00050D98 File Offset: 0x0004EF98
|
||||
[Token(Token = "0x6002343")]
|
||||
[Address(RVA = "0x4B7B20", Offset = "0x4B6920", VA = "0x1804B7B20")]
|
||||
private void Start()
|
||||
{
|
||||
Debug.Log("FBIKBendGoal is deprecated, you can now a bend goal from the custom inspector of the FullBodyBipedIK component.");
|
||||
}
|
||||
|
||||
// Token: 0x06002344 RID: 9028 RVA: 0x00050DB0 File Offset: 0x0004EFB0
|
||||
[Token(Token = "0x6002344")]
|
||||
[Address(RVA = "0x4B7B80", Offset = "0x4B6980", VA = "0x1804B7B80")]
|
||||
private void Update()
|
||||
{
|
||||
FullBodyBipedIK fullBodyBipedIK = this.ik;
|
||||
int num = 0;
|
||||
if (!(fullBodyBipedIK == num))
|
||||
{
|
||||
IKSolverFullBodyBiped solver = this.ik.solver;
|
||||
FullBodyBipedChain fullBodyBipedChain = this.chain;
|
||||
IKConstraintBend bendConstraint = solver.GetBendConstraint(fullBodyBipedChain);
|
||||
Transform transform = base.transform;
|
||||
bendConstraint.bendGoal = transform;
|
||||
IKSolverFullBodyBiped solver2 = this.ik.solver;
|
||||
FullBodyBipedChain fullBodyBipedChain2 = this.chain;
|
||||
IKConstraintBend bendConstraint2 = solver2.GetBendConstraint(fullBodyBipedChain2);
|
||||
float num2 = this.weight;
|
||||
bendConstraint2.weight = num2;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06002345 RID: 9029 RVA: 0x00050E34 File Offset: 0x0004F034
|
||||
[Token(Token = "0x6002345")]
|
||||
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
|
||||
public FBIKBendGoal()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002CA9 RID: 11433
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002CA9")]
|
||||
public FullBodyBipedIK ik;
|
||||
|
||||
// Token: 0x04002CAA RID: 11434
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002CAA")]
|
||||
public FullBodyBipedChain chain;
|
||||
|
||||
// Token: 0x04002CAB RID: 11435
|
||||
[FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x4002CAB")]
|
||||
public float weight;
|
||||
}
|
||||
}
|
||||
96
Cpp2IL/Assembly-CSharp/RootMotion/Demos/FBIKBoxing.cs
Normal file
96
Cpp2IL/Assembly-CSharp/RootMotion/Demos/FBIKBoxing.cs
Normal file
@@ -0,0 +1,96 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003BB RID: 955
|
||||
[Token(Token = "0x20003BB")]
|
||||
public class FBIKBoxing : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002346 RID: 9030 RVA: 0x00050E48 File Offset: 0x0004F048
|
||||
[Token(Token = "0x6002346")]
|
||||
[Address(RVA = "0x4B7E70", Offset = "0x4B6C70", VA = "0x1804B7E70")]
|
||||
private void Start()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06002346)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RootMotion.Demos.FBIKBoxing::Start()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{; Block_0:; stloc:Animator(var_0_06, call:Animator(Component::GetComponent, ldloc:FBIKBoxing[exp:Component](this))); stfld:Animator(FBIKBoxing::animator, ldloc:FBIKBoxing(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: 0x06002347 RID: 9031 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002347")]
|
||||
[Address(RVA = "0x4B7C60", Offset = "0x4B6A60", VA = "0x1804B7C60")]
|
||||
private void LateUpdate()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002348 RID: 9032 RVA: 0x00050E64 File Offset: 0x0004F064
|
||||
[Token(Token = "0x6002348")]
|
||||
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
|
||||
public FBIKBoxing()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002CAC RID: 11436
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002CAC")]
|
||||
[Tooltip("The target we want to hit")]
|
||||
public Transform target;
|
||||
|
||||
// Token: 0x04002CAD RID: 11437
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002CAD")]
|
||||
[Tooltip("The pin Transform is used to reference the exact hit point in the animation (used by AimIK to aim the upper body to follow the target).In Legacy and Generic modes you can just create and position a reference point in your animating software and include it in the FBX. Then in Unity if you added a GameObject with the exact same name under the character's root, it would be animated to the required position.In Humanoid mode however, Mecanim loses track of any Transform that does not belong to the avatar, so in this case the pin point has to be manually set inside the Unity Editor.")]
|
||||
public Transform pin;
|
||||
|
||||
// Token: 0x04002CAE RID: 11438
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002CAE")]
|
||||
[Tooltip("The Full Body Biped IK component")]
|
||||
public FullBodyBipedIK ik;
|
||||
|
||||
// Token: 0x04002CAF RID: 11439
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002CAF")]
|
||||
[Tooltip("The Aim IK component. Aim IK is ust used for following the target slightly with the body.")]
|
||||
public AimIK aim;
|
||||
|
||||
// Token: 0x04002CB0 RID: 11440
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002CB0")]
|
||||
[Tooltip("The master weight")]
|
||||
public float weight;
|
||||
|
||||
// Token: 0x04002CB1 RID: 11441
|
||||
[FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x4002CB1")]
|
||||
[Tooltip("The effector type of the punching hand")]
|
||||
public FullBodyBipedEffector effector;
|
||||
|
||||
// Token: 0x04002CB2 RID: 11442
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002CB2")]
|
||||
[Tooltip("Weight of aiming the body to follow the target")]
|
||||
public AnimationCurve aimWeight;
|
||||
|
||||
// Token: 0x04002CB3 RID: 11443
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002CB3")]
|
||||
private Animator animator;
|
||||
}
|
||||
}
|
||||
93
Cpp2IL/Assembly-CSharp/RootMotion/Demos/FBIKHandsOnProp.cs
Normal file
93
Cpp2IL/Assembly-CSharp/RootMotion/Demos/FBIKHandsOnProp.cs
Normal file
@@ -0,0 +1,93 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003BC RID: 956
|
||||
[Token(Token = "0x20003BC")]
|
||||
public class FBIKHandsOnProp : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002349 RID: 9033 RVA: 0x00050E78 File Offset: 0x0004F078
|
||||
[Token(Token = "0x6002349")]
|
||||
[Address(RVA = "0x4BB7F0", Offset = "0x4BA5F0", VA = "0x1804BB7F0")]
|
||||
private void Awake()
|
||||
{
|
||||
IKSolverFullBodyBiped solver = this.ik.solver;
|
||||
IKSolver.UpdateDelegate onPreRead = solver.OnPreRead;
|
||||
IKSolver.UpdateDelegate updateDelegate = new IKSolver.UpdateDelegate(this.OnPreRead);
|
||||
Delegate @delegate = Delegate.Combine(onPreRead, updateDelegate);
|
||||
int num = 0;
|
||||
if (@delegate == 0 || @delegate != 0)
|
||||
{
|
||||
solver.OnPreRead = num;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
throw new InvalidCastException();
|
||||
}
|
||||
|
||||
// Token: 0x0600234A RID: 9034 RVA: 0x00050ECC File Offset: 0x0004F0CC
|
||||
[Token(Token = "0x600234A")]
|
||||
[Address(RVA = "0x4BC0E0", Offset = "0x4BAEE0", VA = "0x1804BC0E0")]
|
||||
private void OnPreRead()
|
||||
{
|
||||
FullBodyBipedIK fullBodyBipedIK = this.ik;
|
||||
if (!this.leftHanded)
|
||||
{
|
||||
IKEffector rightHandEffector = fullBodyBipedIK.solver.rightHandEffector;
|
||||
IKEffector leftHandEffector = this.ik.solver.leftHandEffector;
|
||||
}
|
||||
IKEffector leftHandEffector2 = fullBodyBipedIK.solver.leftHandEffector;
|
||||
IKEffector rightHandEffector2 = this.ik.solver.rightHandEffector;
|
||||
this.HandsOnProp(leftHandEffector2, rightHandEffector2);
|
||||
}
|
||||
|
||||
// Token: 0x0600234B RID: 9035 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600234B")]
|
||||
[Address(RVA = "0x4BB8E0", Offset = "0x4BA6E0", VA = "0x1804BB8E0")]
|
||||
private void HandsOnProp(IKEffector mainHand, IKEffector otherHand)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600234C RID: 9036 RVA: 0x00050F34 File Offset: 0x0004F134
|
||||
[Token(Token = "0x600234C")]
|
||||
[Address(RVA = "0x4BBFB0", Offset = "0x4BADB0", VA = "0x1804BBFB0")]
|
||||
private void OnDestroy()
|
||||
{
|
||||
FullBodyBipedIK fullBodyBipedIK = this.ik;
|
||||
int num = 0;
|
||||
if (fullBodyBipedIK != num)
|
||||
{
|
||||
IKSolverFullBodyBiped solver = this.ik.solver;
|
||||
IKSolver.UpdateDelegate onPreRead = solver.OnPreRead;
|
||||
IKSolver.UpdateDelegate updateDelegate = new IKSolver.UpdateDelegate(this.OnPreRead);
|
||||
Delegate @delegate = Delegate.Remove(onPreRead, updateDelegate);
|
||||
int num2 = 0;
|
||||
if (@delegate != 0 && @delegate == 0)
|
||||
{
|
||||
throw new InvalidCastException();
|
||||
}
|
||||
solver.OnPreRead = num2;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600234D RID: 9037 RVA: 0x00050FA0 File Offset: 0x0004F1A0
|
||||
[Token(Token = "0x600234D")]
|
||||
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
|
||||
public FBIKHandsOnProp()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002CB4 RID: 11444
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002CB4")]
|
||||
public FullBodyBipedIK ik;
|
||||
|
||||
// Token: 0x04002CB5 RID: 11445
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002CB5")]
|
||||
public bool leftHanded;
|
||||
}
|
||||
}
|
||||
159
Cpp2IL/Assembly-CSharp/RootMotion/Demos/FPSAiming.cs
Normal file
159
Cpp2IL/Assembly-CSharp/RootMotion/Demos/FPSAiming.cs
Normal file
@@ -0,0 +1,159 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003BD RID: 957
|
||||
[Token(Token = "0x20003BD")]
|
||||
public class FPSAiming : MonoBehaviour
|
||||
{
|
||||
// Token: 0x0600234E RID: 9038 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600234E")]
|
||||
[Address(RVA = "0x4BE8F0", Offset = "0x4BD6F0", VA = "0x1804BE8F0")]
|
||||
private void Start()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600234F RID: 9039 RVA: 0x00050FB4 File Offset: 0x0004F1B4
|
||||
[Token(Token = "0x600234F")]
|
||||
[Address(RVA = "0x4BD8A0", Offset = "0x4BC6A0", VA = "0x1804BD8A0")]
|
||||
private void FixedUpdate()
|
||||
{
|
||||
this.updateFrame = true;
|
||||
}
|
||||
|
||||
// Token: 0x06002350 RID: 9040 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002350")]
|
||||
[Address(RVA = "0x4BD8B0", Offset = "0x4BC6B0", VA = "0x1804BD8B0")]
|
||||
private void LateUpdate()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002351 RID: 9041 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002351")]
|
||||
[Address(RVA = "0x4BD6E0", Offset = "0x4BC4E0", VA = "0x1804BD6E0")]
|
||||
private void Aiming()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002352 RID: 9042 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002352")]
|
||||
[Address(RVA = "0x4BD9D0", Offset = "0x4BC7D0", VA = "0x1804BD9D0")]
|
||||
private void LookDownTheSight()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002353 RID: 9043 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002353")]
|
||||
[Address(RVA = "0x4BE670", Offset = "0x4BD470", VA = "0x1804BE670")]
|
||||
private void RotateCharacter()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002354 RID: 9044 RVA: 0x00050FC8 File Offset: 0x0004F1C8
|
||||
[Token(Token = "0x6002354")]
|
||||
[Address(RVA = "0x4BEA90", Offset = "0x4BD890", VA = "0x1804BEA90")]
|
||||
public FPSAiming()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002CB6 RID: 11446
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002CB6")]
|
||||
[Range(0f, 1f)]
|
||||
public float aimWeight = 1f;
|
||||
|
||||
// Token: 0x04002CB7 RID: 11447
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4002CB7")]
|
||||
[Range(0f, 1f)]
|
||||
public float sightWeight = 1f;
|
||||
|
||||
// Token: 0x04002CB8 RID: 11448
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002CB8")]
|
||||
[Range(0f, 180f)]
|
||||
public float maxAngle = 80f;
|
||||
|
||||
// Token: 0x04002CB9 RID: 11449
|
||||
[FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x4002CB9")]
|
||||
[SerializeField]
|
||||
private bool animatePhysics;
|
||||
|
||||
// Token: 0x04002CBA RID: 11450
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002CBA")]
|
||||
[SerializeField]
|
||||
private Transform gun;
|
||||
|
||||
// Token: 0x04002CBB RID: 11451
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002CBB")]
|
||||
[SerializeField]
|
||||
private Transform gunTarget;
|
||||
|
||||
// Token: 0x04002CBC RID: 11452
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002CBC")]
|
||||
[SerializeField]
|
||||
private FullBodyBipedIK ik;
|
||||
|
||||
// Token: 0x04002CBD RID: 11453
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002CBD")]
|
||||
[SerializeField]
|
||||
private AimIK gunAim;
|
||||
|
||||
// Token: 0x04002CBE RID: 11454
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002CBE")]
|
||||
[SerializeField]
|
||||
private CameraControllerFPS cam;
|
||||
|
||||
// Token: 0x04002CBF RID: 11455
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4002CBF")]
|
||||
[SerializeField]
|
||||
private Recoil recoil;
|
||||
|
||||
// Token: 0x04002CC0 RID: 11456
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4002CC0")]
|
||||
[SerializeField]
|
||||
[Range(0f, 1f)]
|
||||
private float cameraRecoilWeight = 0.5f;
|
||||
|
||||
// Token: 0x04002CC1 RID: 11457
|
||||
[FieldOffset(Offset = "0x5C")]
|
||||
[Token(Token = "0x4002CC1")]
|
||||
private Vector3 gunTargetDefaultLocalPosition;
|
||||
|
||||
// Token: 0x04002CC2 RID: 11458
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4002CC2")]
|
||||
private Quaternion gunTargetDefaultLocalRotation;
|
||||
|
||||
// Token: 0x04002CC3 RID: 11459
|
||||
[FieldOffset(Offset = "0x78")]
|
||||
[Token(Token = "0x4002CC3")]
|
||||
private Vector3 camDefaultLocalPosition;
|
||||
|
||||
// Token: 0x04002CC4 RID: 11460
|
||||
[FieldOffset(Offset = "0x84")]
|
||||
[Token(Token = "0x4002CC4")]
|
||||
private Vector3 camRelativeToGunTarget;
|
||||
|
||||
// Token: 0x04002CC5 RID: 11461
|
||||
[FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x4002CC5")]
|
||||
private bool updateFrame;
|
||||
}
|
||||
}
|
||||
79
Cpp2IL/Assembly-CSharp/RootMotion/Demos/FPSCharacter.cs
Normal file
79
Cpp2IL/Assembly-CSharp/RootMotion/Demos/FPSCharacter.cs
Normal file
@@ -0,0 +1,79 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003BE RID: 958
|
||||
[Token(Token = "0x20003BE")]
|
||||
[RequireComponent(typeof(Animator))]
|
||||
[RequireComponent(typeof(FPSAiming))]
|
||||
public class FPSCharacter : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002355 RID: 9045 RVA: 0x00051008 File Offset: 0x0004F208
|
||||
[Token(Token = "0x6002355")]
|
||||
[Address(RVA = "0x4BEB80", Offset = "0x4BD980", VA = "0x1804BEB80")]
|
||||
private void Start()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06002355)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RootMotion.Demos.FPSCharacter::Start()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{; Block_0:; stloc:Animator(var_0_06, call:Animator(Component::GetComponent, ldloc:FPSCharacter[exp:Component](this))); stfld:Animator(FPSCharacter::animator, ldloc:FPSCharacter(this), ldloc:Animator(var_0_06)); stloc:FPSAiming(var_1_14, call:FPSAiming(Component::GetComponent, ldloc:FPSCharacter[exp:Component](this))); stfld:FPSAiming(FPSCharacter::FPSAiming, ldloc:FPSCharacter(this), ldloc:FPSAiming(var_1_14)); };
|
||||
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: 0x06002356 RID: 9046 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002356")]
|
||||
[Address(RVA = "0x4BEC00", Offset = "0x4BDA00", VA = "0x1804BEC00")]
|
||||
private void Update()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002357 RID: 9047 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002357")]
|
||||
[Address(RVA = "0x4BEAC0", Offset = "0x4BD8C0", VA = "0x1804BEAC0")]
|
||||
private void OnGUI()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002358 RID: 9048 RVA: 0x00051030 File Offset: 0x0004F230
|
||||
[Token(Token = "0x6002358")]
|
||||
[Address(RVA = "0x4BECF0", Offset = "0x4BDAF0", VA = "0x1804BECF0")]
|
||||
public FPSCharacter()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002CC6 RID: 11462
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002CC6")]
|
||||
[Range(0f, 1f)]
|
||||
public float walkSpeed = 0.5f;
|
||||
|
||||
// Token: 0x04002CC7 RID: 11463
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4002CC7")]
|
||||
private float sVel;
|
||||
|
||||
// Token: 0x04002CC8 RID: 11464
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002CC8")]
|
||||
private Animator animator;
|
||||
|
||||
// Token: 0x04002CC9 RID: 11465
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002CC9")]
|
||||
private FPSAiming FPSAiming;
|
||||
}
|
||||
}
|
||||
48
Cpp2IL/Assembly-CSharp/RootMotion/Demos/GrounderDemo.cs
Normal file
48
Cpp2IL/Assembly-CSharp/RootMotion/Demos/GrounderDemo.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003DB RID: 987
|
||||
[Token(Token = "0x20003DB")]
|
||||
public class GrounderDemo : MonoBehaviour
|
||||
{
|
||||
// Token: 0x060023C6 RID: 9158 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023C6")]
|
||||
[Address(RVA = "0x1174DC0", Offset = "0x1173BC0", VA = "0x181174DC0")]
|
||||
private void OnGUI()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023C7 RID: 9159 RVA: 0x00051C6C File Offset: 0x0004FE6C
|
||||
[Token(Token = "0x60023C7")]
|
||||
[Address(RVA = "0x1174D30", Offset = "0x1173B30", VA = "0x181174D30")]
|
||||
public void Activate(int index)
|
||||
{
|
||||
GameObject[] array = this.characters;
|
||||
int num = 0;
|
||||
if (num < array.Length)
|
||||
{
|
||||
GameObject gameObject = array[num];
|
||||
bool flag = num == index;
|
||||
gameObject.SetActive(flag);
|
||||
GameObject[] array2 = this.characters;
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060023C8 RID: 9160 RVA: 0x00051CB4 File Offset: 0x0004FEB4
|
||||
[Token(Token = "0x60023C8")]
|
||||
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
|
||||
public GrounderDemo()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002D5A RID: 11610
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002D5A")]
|
||||
public GameObject[] characters;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003BF RID: 959
|
||||
[Token(Token = "0x20003BF")]
|
||||
public class HitReactionTrigger : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002359 RID: 9049 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002359")]
|
||||
[Address(RVA = "0x117E000", Offset = "0x117CE00", VA = "0x18117E000")]
|
||||
private void Update()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600235A RID: 9050 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600235A")]
|
||||
[Address(RVA = "0x117DF30", Offset = "0x117CD30", VA = "0x18117DF30")]
|
||||
private void OnGUI()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600235B RID: 9051 RVA: 0x00051050 File Offset: 0x0004F250
|
||||
[Token(Token = "0x600235B")]
|
||||
[Address(RVA = "0x8D4180", Offset = "0x8D2F80", VA = "0x1808D4180")]
|
||||
public HitReactionTrigger()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002CCA RID: 11466
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002CCA")]
|
||||
[SerializeField]
|
||||
private HitReaction hitReaction;
|
||||
|
||||
// Token: 0x04002CCB RID: 11467
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002CCB")]
|
||||
[SerializeField]
|
||||
private float hitForce = 1f;
|
||||
|
||||
// Token: 0x04002CCC RID: 11468
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002CCC")]
|
||||
private string colliderName;
|
||||
}
|
||||
}
|
||||
75
Cpp2IL/Assembly-CSharp/RootMotion/Demos/HoldingHands.cs
Normal file
75
Cpp2IL/Assembly-CSharp/RootMotion/Demos/HoldingHands.cs
Normal file
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003C0 RID: 960
|
||||
[Token(Token = "0x20003C0")]
|
||||
public class HoldingHands : MonoBehaviour
|
||||
{
|
||||
// Token: 0x0600235C RID: 9052 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600235C")]
|
||||
[Address(RVA = "0x117EE50", Offset = "0x117DC50", VA = "0x18117EE50")]
|
||||
private void Start()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600235D RID: 9053 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600235D")]
|
||||
[Address(RVA = "0x117E9E0", Offset = "0x117D7E0", VA = "0x18117E9E0")]
|
||||
private void LateUpdate()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600235E RID: 9054 RVA: 0x00051070 File Offset: 0x0004F270
|
||||
[Token(Token = "0x600235E")]
|
||||
[Address(RVA = "0x117EFD0", Offset = "0x117DDD0", VA = "0x18117EFD0")]
|
||||
public HoldingHands()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002CCD RID: 11469
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002CCD")]
|
||||
public FullBodyBipedIK rightHandChar;
|
||||
|
||||
// Token: 0x04002CCE RID: 11470
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002CCE")]
|
||||
public FullBodyBipedIK leftHandChar;
|
||||
|
||||
// Token: 0x04002CCF RID: 11471
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002CCF")]
|
||||
public Transform rightHandTarget;
|
||||
|
||||
// Token: 0x04002CD0 RID: 11472
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002CD0")]
|
||||
public Transform leftHandTarget;
|
||||
|
||||
// Token: 0x04002CD1 RID: 11473
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002CD1")]
|
||||
public float crossFade;
|
||||
|
||||
// Token: 0x04002CD2 RID: 11474
|
||||
[FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x4002CD2")]
|
||||
public float speed = 10f;
|
||||
|
||||
// Token: 0x04002CD3 RID: 11475
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002CD3")]
|
||||
private Quaternion rightHandRotation;
|
||||
|
||||
// Token: 0x04002CD4 RID: 11476
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4002CD4")]
|
||||
private Quaternion leftHandRotation;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003C1 RID: 961
|
||||
[Token(Token = "0x20003C1")]
|
||||
public class InteractionC2CDemo : MonoBehaviour
|
||||
{
|
||||
// Token: 0x0600235F RID: 9055 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600235F")]
|
||||
[Address(RVA = "0x10D3430", Offset = "0x10D2230", VA = "0x1810D3430")]
|
||||
private void OnGUI()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002360 RID: 9056 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002360")]
|
||||
[Address(RVA = "0x10D32A0", Offset = "0x10D20A0", VA = "0x1810D32A0")]
|
||||
private void LateUpdate()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002361 RID: 9057 RVA: 0x00051090 File Offset: 0x0004F290
|
||||
[Token(Token = "0x6002361")]
|
||||
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
|
||||
public InteractionC2CDemo()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002CD5 RID: 11477
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002CD5")]
|
||||
public InteractionSystem character1;
|
||||
|
||||
// Token: 0x04002CD6 RID: 11478
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002CD6")]
|
||||
public InteractionSystem character2;
|
||||
|
||||
// Token: 0x04002CD7 RID: 11479
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002CD7")]
|
||||
public InteractionObject handShake;
|
||||
}
|
||||
}
|
||||
72
Cpp2IL/Assembly-CSharp/RootMotion/Demos/InteractionDemo.cs
Normal file
72
Cpp2IL/Assembly-CSharp/RootMotion/Demos/InteractionDemo.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003C2 RID: 962
|
||||
[Token(Token = "0x20003C2")]
|
||||
public class InteractionDemo : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002362 RID: 9058 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002362")]
|
||||
[Address(RVA = "0x10D34E0", Offset = "0x10D22E0", VA = "0x1810D34E0")]
|
||||
private void OnGUI()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002363 RID: 9059 RVA: 0x000510A4 File Offset: 0x0004F2A4
|
||||
[Token(Token = "0x6002363")]
|
||||
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
|
||||
public InteractionDemo()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002CD8 RID: 11480
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002CD8")]
|
||||
public InteractionSystem interactionSystem;
|
||||
|
||||
// Token: 0x04002CD9 RID: 11481
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002CD9")]
|
||||
public bool interrupt;
|
||||
|
||||
// Token: 0x04002CDA RID: 11482
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002CDA")]
|
||||
public InteractionObject ball;
|
||||
|
||||
// Token: 0x04002CDB RID: 11483
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002CDB")]
|
||||
public InteractionObject benchMain;
|
||||
|
||||
// Token: 0x04002CDC RID: 11484
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002CDC")]
|
||||
public InteractionObject benchHands;
|
||||
|
||||
// Token: 0x04002CDD RID: 11485
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002CDD")]
|
||||
public InteractionObject button;
|
||||
|
||||
// Token: 0x04002CDE RID: 11486
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002CDE")]
|
||||
public InteractionObject cigarette;
|
||||
|
||||
// Token: 0x04002CDF RID: 11487
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4002CDF")]
|
||||
public InteractionObject door;
|
||||
|
||||
// Token: 0x04002CE0 RID: 11488
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4002CE0")]
|
||||
private bool isSitting;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
175
Cpp2IL/Assembly-CSharp/RootMotion/Demos/KissingRig.cs
Normal file
175
Cpp2IL/Assembly-CSharp/RootMotion/Demos/KissingRig.cs
Normal file
@@ -0,0 +1,175 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003C4 RID: 964
|
||||
[Token(Token = "0x20003C4")]
|
||||
public class KissingRig : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002367 RID: 9063 RVA: 0x000510E8 File Offset: 0x0004F2E8
|
||||
[Token(Token = "0x6002367")]
|
||||
[Address(RVA = "0x10E29B0", Offset = "0x10E17B0", VA = "0x1810E29B0")]
|
||||
private void Start()
|
||||
{
|
||||
this.partner1.Initiate();
|
||||
this.partner2.Initiate();
|
||||
}
|
||||
|
||||
// Token: 0x06002368 RID: 9064 RVA: 0x00051114 File Offset: 0x0004F314
|
||||
[Token(Token = "0x6002368")]
|
||||
[Address(RVA = "0x10E2950", Offset = "0x10E1750", VA = "0x1810E2950")]
|
||||
private void LateUpdate()
|
||||
{
|
||||
int num = 0;
|
||||
if (this.iterations > num)
|
||||
{
|
||||
KissingRig.Partner partner = this.partner1;
|
||||
float num2 = this.weight;
|
||||
partner.Update(num2);
|
||||
KissingRig.Partner partner2 = this.partner2;
|
||||
float num3 = this.weight;
|
||||
partner2.Update(num3);
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06002369 RID: 9065 RVA: 0x00051164 File Offset: 0x0004F364
|
||||
[Token(Token = "0x6002369")]
|
||||
[Address(RVA = "0x10E29F0", Offset = "0x10E17F0", VA = "0x1810E29F0")]
|
||||
public KissingRig()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002CE4 RID: 11492
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002CE4")]
|
||||
public KissingRig.Partner partner1;
|
||||
|
||||
// Token: 0x04002CE5 RID: 11493
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002CE5")]
|
||||
public KissingRig.Partner partner2;
|
||||
|
||||
// Token: 0x04002CE6 RID: 11494
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002CE6")]
|
||||
public float weight;
|
||||
|
||||
// Token: 0x04002CE7 RID: 11495
|
||||
[FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x4002CE7")]
|
||||
public int iterations = (int)((ulong)3L);
|
||||
|
||||
// Token: 0x020003C5 RID: 965
|
||||
[Token(Token = "0x20003C5")]
|
||||
[Serializable]
|
||||
public class Partner
|
||||
{
|
||||
// Token: 0x0600236A RID: 9066 RVA: 0x00051180 File Offset: 0x0004F380
|
||||
[Token(Token = "0x600236A")]
|
||||
[Address(RVA = "0xA6AE50", Offset = "0xA69C50", VA = "0x180A6AE50")]
|
||||
public void Initiate()
|
||||
{
|
||||
FullBodyBipedIK fullBodyBipedIK = this.ik;
|
||||
int num = 0;
|
||||
fullBodyBipedIK.enabled = num != 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600236B RID: 9067 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600236B")]
|
||||
[Address(RVA = "0x14F1C40", Offset = "0x14F0A40", VA = "0x1814F1C40")]
|
||||
public void Update(float weight)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x170001FD RID: 509
|
||||
// (get) Token: 0x0600236C RID: 9068 RVA: 0x000511A4 File Offset: 0x0004F3A4
|
||||
[Token(Token = "0x170001FD")]
|
||||
private Transform neck
|
||||
{
|
||||
[Token(Token = "0x600236C")]
|
||||
[Address(RVA = "0x14F2580", Offset = "0x14F1380", VA = "0x1814F2580")]
|
||||
get
|
||||
{
|
||||
Transform[] spineBones = this.ik.solver.spineMapping.spineBones;
|
||||
int num = spineBones.Length - 1;
|
||||
return spineBones[num];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600236D RID: 9069 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600236D")]
|
||||
[Address(RVA = "0x14F19E0", Offset = "0x14F07E0", VA = "0x1814F19E0")]
|
||||
private void InverseTransformEffector(FullBodyBipedEffector effector, Transform target, Vector3 targetPosition, float weight)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600236E RID: 9070 RVA: 0x000511E0 File Offset: 0x0004F3E0
|
||||
[Token(Token = "0x600236E")]
|
||||
[Address(RVA = "0x14F2550", Offset = "0x14F1350", VA = "0x1814F2550")]
|
||||
public Partner()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002CE8 RID: 11496
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4002CE8")]
|
||||
public FullBodyBipedIK ik;
|
||||
|
||||
// Token: 0x04002CE9 RID: 11497
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002CE9")]
|
||||
public Transform mouth;
|
||||
|
||||
// Token: 0x04002CEA RID: 11498
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002CEA")]
|
||||
public Transform mouthTarget;
|
||||
|
||||
// Token: 0x04002CEB RID: 11499
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002CEB")]
|
||||
public Transform touchTargetLeftHand;
|
||||
|
||||
// Token: 0x04002CEC RID: 11500
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002CEC")]
|
||||
public Transform touchTargetRightHand;
|
||||
|
||||
// Token: 0x04002CED RID: 11501
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002CED")]
|
||||
public float bodyWeightHorizontal = 0.4f;
|
||||
|
||||
// Token: 0x04002CEE RID: 11502
|
||||
[FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x4002CEE")]
|
||||
public float bodyWeightVertical = 1f;
|
||||
|
||||
// Token: 0x04002CEF RID: 11503
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002CEF")]
|
||||
public float neckRotationWeight = 0.3f;
|
||||
|
||||
// Token: 0x04002CF0 RID: 11504
|
||||
[FieldOffset(Offset = "0x44")]
|
||||
[Token(Token = "0x4002CF0")]
|
||||
public float headTiltAngle = 10f;
|
||||
|
||||
// Token: 0x04002CF1 RID: 11505
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002CF1")]
|
||||
public Vector3 headTiltAxis;
|
||||
|
||||
// Token: 0x04002CF2 RID: 11506
|
||||
[FieldOffset(Offset = "0x54")]
|
||||
[Token(Token = "0x4002CF2")]
|
||||
private Quaternion neckRotation;
|
||||
}
|
||||
}
|
||||
}
|
||||
127
Cpp2IL/Assembly-CSharp/RootMotion/Demos/MechSpider.cs
Normal file
127
Cpp2IL/Assembly-CSharp/RootMotion/Demos/MechSpider.cs
Normal file
@@ -0,0 +1,127 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003AA RID: 938
|
||||
[Token(Token = "0x20003AA")]
|
||||
public class MechSpider : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002304 RID: 8964 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002304")]
|
||||
[Address(RVA = "0x403690", Offset = "0x402490", VA = "0x180403690")]
|
||||
private void Update()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002305 RID: 8965 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002305")]
|
||||
[Address(RVA = "0x403170", Offset = "0x401F70", VA = "0x180403170")]
|
||||
private Vector3 GetLegCentroid()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002306 RID: 8966 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002306")]
|
||||
[Address(RVA = "0x4032F0", Offset = "0x4020F0", VA = "0x1804032F0")]
|
||||
private Vector3 GetLegsPlaneNormal()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002307 RID: 8967 RVA: 0x00050730 File Offset: 0x0004E930
|
||||
[Token(Token = "0x6002307")]
|
||||
[Address(RVA = "0x403FD0", Offset = "0x402DD0", VA = "0x180403FD0")]
|
||||
public MechSpider()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002C39 RID: 11321
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002C39")]
|
||||
public LayerMask raycastLayers;
|
||||
|
||||
// Token: 0x04002C3A RID: 11322
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4002C3A")]
|
||||
public float scale = 1f;
|
||||
|
||||
// Token: 0x04002C3B RID: 11323
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002C3B")]
|
||||
public Transform body;
|
||||
|
||||
// Token: 0x04002C3C RID: 11324
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002C3C")]
|
||||
public MechSpiderLeg[] legs;
|
||||
|
||||
// Token: 0x04002C3D RID: 11325
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002C3D")]
|
||||
public float legRotationWeight = 1f;
|
||||
|
||||
// Token: 0x04002C3E RID: 11326
|
||||
[FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x4002C3E")]
|
||||
public float rootPositionSpeed = 5f;
|
||||
|
||||
// Token: 0x04002C3F RID: 11327
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002C3F")]
|
||||
public float rootRotationSpeed = 30f;
|
||||
|
||||
// Token: 0x04002C40 RID: 11328
|
||||
[FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x4002C40")]
|
||||
public float breatheSpeed = 2f;
|
||||
|
||||
// Token: 0x04002C41 RID: 11329
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002C41")]
|
||||
public float breatheMagnitude = 0.2f;
|
||||
|
||||
// Token: 0x04002C42 RID: 11330
|
||||
[FieldOffset(Offset = "0x44")]
|
||||
[Token(Token = "0x4002C42")]
|
||||
public float height = 3.5f;
|
||||
|
||||
// Token: 0x04002C43 RID: 11331
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002C43")]
|
||||
public float minHeight = 2f;
|
||||
|
||||
// Token: 0x04002C44 RID: 11332
|
||||
[FieldOffset(Offset = "0x4C")]
|
||||
[Token(Token = "0x4002C44")]
|
||||
public float raycastHeight = 10f;
|
||||
|
||||
// Token: 0x04002C45 RID: 11333
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4002C45")]
|
||||
public float raycastDistance = 5f;
|
||||
|
||||
// Token: 0x04002C46 RID: 11334
|
||||
[FieldOffset(Offset = "0x54")]
|
||||
[Token(Token = "0x4002C46")]
|
||||
private Vector3 lastPosition;
|
||||
|
||||
// Token: 0x04002C47 RID: 11335
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4002C47")]
|
||||
private Vector3 defaultBodyLocalPosition;
|
||||
|
||||
// Token: 0x04002C48 RID: 11336
|
||||
[FieldOffset(Offset = "0x6C")]
|
||||
[Token(Token = "0x4002C48")]
|
||||
private float sine;
|
||||
|
||||
// Token: 0x04002C49 RID: 11337
|
||||
[FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x4002C49")]
|
||||
private RaycastHit rootHit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003AB RID: 939
|
||||
[Token(Token = "0x20003AB")]
|
||||
public class MechSpiderController : MonoBehaviour
|
||||
{
|
||||
// Token: 0x170001F6 RID: 502
|
||||
// (get) Token: 0x06002308 RID: 8968 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x170001F6")]
|
||||
public Vector3 inputVector
|
||||
{
|
||||
[Token(Token = "0x6002308")]
|
||||
[Address(RVA = "0x402040", Offset = "0x400E40", VA = "0x180402040")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06002309 RID: 8969 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002309")]
|
||||
[Address(RVA = "0x401D40", Offset = "0x400B40", VA = "0x180401D40")]
|
||||
private void Update()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600230A RID: 8970 RVA: 0x000507B4 File Offset: 0x0004E9B4
|
||||
[Token(Token = "0x600230A")]
|
||||
[Address(RVA = "0x402020", Offset = "0x400E20", VA = "0x180402020")]
|
||||
public MechSpiderController()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002C4A RID: 11338
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002C4A")]
|
||||
public MechSpider mechSpider;
|
||||
|
||||
// Token: 0x04002C4B RID: 11339
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002C4B")]
|
||||
public Transform cameraTransform;
|
||||
|
||||
// Token: 0x04002C4C RID: 11340
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002C4C")]
|
||||
public float speed = 6f;
|
||||
|
||||
// Token: 0x04002C4D RID: 11341
|
||||
[FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x4002C4D")]
|
||||
public float turnSpeed = 30f;
|
||||
}
|
||||
}
|
||||
167
Cpp2IL/Assembly-CSharp/RootMotion/Demos/MechSpiderLeg.cs
Normal file
167
Cpp2IL/Assembly-CSharp/RootMotion/Demos/MechSpiderLeg.cs
Normal file
@@ -0,0 +1,167 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003AC RID: 940
|
||||
[Token(Token = "0x20003AC")]
|
||||
public class MechSpiderLeg : MonoBehaviour
|
||||
{
|
||||
// Token: 0x170001F7 RID: 503
|
||||
// (get) Token: 0x0600230B RID: 8971 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x170001F7")]
|
||||
public bool isStepping
|
||||
{
|
||||
[Token(Token = "0x600230B")]
|
||||
[Address(RVA = "0x402CC0", Offset = "0x401AC0", VA = "0x180402CC0")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001F8 RID: 504
|
||||
// (get) Token: 0x0600230C RID: 8972 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
// (set) Token: 0x0600230D RID: 8973 RVA: 0x000507E0 File Offset: 0x0004E9E0
|
||||
[Token(Token = "0x170001F8")]
|
||||
public Vector3 position
|
||||
{
|
||||
[Token(Token = "0x600230C")]
|
||||
[Address(RVA = "0x402CD0", Offset = "0x401AD0", VA = "0x180402CD0")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
[Token(Token = "0x600230D")]
|
||||
[Address(RVA = "0x402D30", Offset = "0x401B30", VA = "0x180402D30")]
|
||||
set
|
||||
{
|
||||
IKSolver iksolver = this.ik.GetIKSolver();
|
||||
float z = value.z;
|
||||
iksolver.IKPosition.z = z;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600230E RID: 8974 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600230E")]
|
||||
[Address(RVA = "0x4025B0", Offset = "0x4013B0", VA = "0x1804025B0")]
|
||||
private void Start()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600230F RID: 8975 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600230F")]
|
||||
[Address(RVA = "0x4020C0", Offset = "0x400EC0", VA = "0x1804020C0")]
|
||||
private Vector3 GetStepTarget(out bool stepFound, float focus, float distance)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002310 RID: 8976 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002310")]
|
||||
[Address(RVA = "0x402940", Offset = "0x401740", VA = "0x180402940")]
|
||||
private void Update()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002311 RID: 8977 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002311")]
|
||||
[Address(RVA = "0x402890", Offset = "0x401690", VA = "0x180402890")]
|
||||
private IEnumerator Step(Vector3 stepStartPosition, Vector3 targetPosition)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002312 RID: 8978 RVA: 0x00050814 File Offset: 0x0004EA14
|
||||
[Token(Token = "0x6002312")]
|
||||
[Address(RVA = "0x402C80", Offset = "0x401A80", VA = "0x180402C80")]
|
||||
public MechSpiderLeg()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002C4E RID: 11342
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002C4E")]
|
||||
public MechSpider mechSpider;
|
||||
|
||||
// Token: 0x04002C4F RID: 11343
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002C4F")]
|
||||
public MechSpiderLeg unSync;
|
||||
|
||||
// Token: 0x04002C50 RID: 11344
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002C50")]
|
||||
public Vector3 offset;
|
||||
|
||||
// Token: 0x04002C51 RID: 11345
|
||||
[FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x4002C51")]
|
||||
public float minDelay = 0.2f;
|
||||
|
||||
// Token: 0x04002C52 RID: 11346
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002C52")]
|
||||
public float maxOffset = 1f;
|
||||
|
||||
// Token: 0x04002C53 RID: 11347
|
||||
[FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x4002C53")]
|
||||
public float stepSpeed = 5f;
|
||||
|
||||
// Token: 0x04002C54 RID: 11348
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002C54")]
|
||||
public float footHeight = 0.15f;
|
||||
|
||||
// Token: 0x04002C55 RID: 11349
|
||||
[FieldOffset(Offset = "0x44")]
|
||||
[Token(Token = "0x4002C55")]
|
||||
public float velocityPrediction = 0.2f;
|
||||
|
||||
// Token: 0x04002C56 RID: 11350
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002C56")]
|
||||
public float raycastFocus = 0.1f;
|
||||
|
||||
// Token: 0x04002C57 RID: 11351
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4002C57")]
|
||||
public AnimationCurve yOffset;
|
||||
|
||||
// Token: 0x04002C58 RID: 11352
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4002C58")]
|
||||
public ParticleSystem sand;
|
||||
|
||||
// Token: 0x04002C59 RID: 11353
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4002C59")]
|
||||
private IK ik;
|
||||
|
||||
// Token: 0x04002C5A RID: 11354
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4002C5A")]
|
||||
private float stepProgress = 1f;
|
||||
|
||||
// Token: 0x04002C5B RID: 11355
|
||||
[FieldOffset(Offset = "0x6C")]
|
||||
[Token(Token = "0x4002C5B")]
|
||||
private float lastStepTime;
|
||||
|
||||
// Token: 0x04002C5C RID: 11356
|
||||
[FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x4002C5C")]
|
||||
private Vector3 defaultPosition;
|
||||
|
||||
// Token: 0x04002C5D RID: 11357
|
||||
[FieldOffset(Offset = "0x7C")]
|
||||
[Token(Token = "0x4002C5D")]
|
||||
private RaycastHit hit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003AE RID: 942
|
||||
[Token(Token = "0x20003AE")]
|
||||
public class MechSpiderParticles : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002319 RID: 8985 RVA: 0x000508CC File Offset: 0x0004EACC
|
||||
[Token(Token = "0x6002319")]
|
||||
[Address(RVA = "0x402D80", Offset = "0x401B80", VA = "0x180402D80")]
|
||||
private void Start()
|
||||
{
|
||||
Type typeFromHandle = typeof(ParticleSystem);
|
||||
Component component = base.GetComponent(typeFromHandle);
|
||||
int num = 0;
|
||||
if (component == 0 || component != 0)
|
||||
{
|
||||
this.particles = num;
|
||||
}
|
||||
throw new InvalidCastException();
|
||||
}
|
||||
|
||||
// Token: 0x0600231A RID: 8986 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600231A")]
|
||||
[Address(RVA = "0x402E40", Offset = "0x401C40", VA = "0x180402E40")]
|
||||
private void Update()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600231B RID: 8987 RVA: 0x00050904 File Offset: 0x0004EB04
|
||||
[Token(Token = "0x600231B")]
|
||||
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
|
||||
public MechSpiderParticles()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002C63 RID: 11363
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002C63")]
|
||||
public MechSpiderController mechSpiderController;
|
||||
|
||||
// Token: 0x04002C64 RID: 11364
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002C64")]
|
||||
private ParticleSystem particles;
|
||||
}
|
||||
}
|
||||
137
Cpp2IL/Assembly-CSharp/RootMotion/Demos/MotionAbsorb.cs
Normal file
137
Cpp2IL/Assembly-CSharp/RootMotion/Demos/MotionAbsorb.cs
Normal file
@@ -0,0 +1,137 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003C6 RID: 966
|
||||
[Token(Token = "0x20003C6")]
|
||||
public class MotionAbsorb : MonoBehaviour
|
||||
{
|
||||
// Token: 0x0600236F RID: 9071 RVA: 0x00051220 File Offset: 0x0004F420
|
||||
[Token(Token = "0x600236F")]
|
||||
[Address(RVA = "0xBC8190", Offset = "0xBC6F90", VA = "0x180BC8190")]
|
||||
private void OnCollisionEnter()
|
||||
{
|
||||
float num = this.timer;
|
||||
int num2 = 0;
|
||||
if (num <= (float)num2)
|
||||
{
|
||||
int num3;
|
||||
MotionAbsorb.<AbsorbMotion>d__8 <AbsorbMotion>d__ = new MotionAbsorb.<AbsorbMotion>d__8(num3);
|
||||
num3 = 0;
|
||||
<AbsorbMotion>d__.<>4__this = this;
|
||||
Coroutine coroutine = base.StartCoroutine(<AbsorbMotion>d__);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06002370 RID: 9072 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002370")]
|
||||
[Address(RVA = "0xBC8120", Offset = "0xBC6F20", VA = "0x180BC8120")]
|
||||
private IEnumerator AbsorbMotion()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002371 RID: 9073 RVA: 0x0005125C File Offset: 0x0004F45C
|
||||
[Token(Token = "0x6002371")]
|
||||
[Address(RVA = "0xBC8220", Offset = "0xBC7020", VA = "0x180BC8220")]
|
||||
public MotionAbsorb()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002CF3 RID: 11507
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002CF3")]
|
||||
[Tooltip("Reference to the FBBIK component")]
|
||||
public FullBodyBipedIK ik;
|
||||
|
||||
// Token: 0x04002CF4 RID: 11508
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002CF4")]
|
||||
[Tooltip("Array containing the absorbers")]
|
||||
public MotionAbsorb.Absorber[] absorbers;
|
||||
|
||||
// Token: 0x04002CF5 RID: 11509
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002CF5")]
|
||||
[Tooltip("The master weight")]
|
||||
public float weight = 1f;
|
||||
|
||||
// Token: 0x04002CF6 RID: 11510
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002CF6")]
|
||||
[Tooltip("Weight falloff curve (how fast will the effect reduce after impact)")]
|
||||
public AnimationCurve falloff;
|
||||
|
||||
// Token: 0x04002CF7 RID: 11511
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002CF7")]
|
||||
[Tooltip("How fast will the impact fade away. (if 1, effect lasts for 1 second)")]
|
||||
public float falloffSpeed = 1f;
|
||||
|
||||
// Token: 0x04002CF8 RID: 11512
|
||||
[FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x4002CF8")]
|
||||
private float timer;
|
||||
|
||||
// Token: 0x020003C7 RID: 967
|
||||
[Token(Token = "0x20003C7")]
|
||||
[Serializable]
|
||||
public class Absorber
|
||||
{
|
||||
// Token: 0x06002372 RID: 9074 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002372")]
|
||||
[Address(RVA = "0x69B660", Offset = "0x69A460", VA = "0x18069B660")]
|
||||
public void SetToBone(IKSolverFullBodyBiped solver)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002373 RID: 9075 RVA: 0x00051288 File Offset: 0x0004F488
|
||||
[Token(Token = "0x6002373")]
|
||||
[Address(RVA = "0x69B5F0", Offset = "0x69A3F0", VA = "0x18069B5F0")]
|
||||
public void SetEffectorWeights(IKSolverFullBodyBiped solver, float w)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06002373)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RootMotion.Demos.MotionAbsorb/Absorber::SetEffectorWeights(RootMotion.FinalIK.IKSolverFullBodyBiped,System.Single)
|
||||
|
||||
---> System.ArgumentOutOfRangeException: Non-negative number required. (Parameter 'length')
|
||||
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
|
||||
at System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length)
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackSlot.ModifyStack(StackSlot[] stack, Int32 popCount, Int32 pushCount, ByteCode pushDefinition) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 51
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackAnalysis(MethodDef methodDef) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 401
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.Build(MethodDef methodDef, Boolean optimize, DecompilerContext context) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 276
|
||||
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 112
|
||||
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: 0x06002374 RID: 9076 RVA: 0x000512DC File Offset: 0x0004F4DC
|
||||
[Token(Token = "0x6002374")]
|
||||
[Address(RVA = "0x5FD950", Offset = "0x5FC750", VA = "0x1805FD950")]
|
||||
public Absorber()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002CF9 RID: 11513
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4002CF9")]
|
||||
[Tooltip("The type of effector (hand, foot, shoulder...) - this is just an enum")]
|
||||
public FullBodyBipedEffector effector;
|
||||
|
||||
// Token: 0x04002CFA RID: 11514
|
||||
[FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x4002CFA")]
|
||||
[Tooltip("How much should motion be absorbed on this effector")]
|
||||
public float weight = 1f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003C9 RID: 969
|
||||
[Token(Token = "0x20003C9")]
|
||||
public class MotionAbsorbCharacter : MonoBehaviour
|
||||
{
|
||||
// Token: 0x0600237B RID: 9083 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600237B")]
|
||||
[Address(RVA = "0xBC7E50", Offset = "0xBC6C50", VA = "0x180BC7E50")]
|
||||
private void Start()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600237C RID: 9084 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600237C")]
|
||||
[Address(RVA = "0xBC8050", Offset = "0xBC6E50", VA = "0x180BC8050")]
|
||||
private void Update()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600237D RID: 9085 RVA: 0x00051354 File Offset: 0x0004F554
|
||||
[Token(Token = "0x600237D")]
|
||||
[Address(RVA = "0xBC7ED0", Offset = "0xBC6CD0", VA = "0x180BC7ED0")]
|
||||
private void SwingStart()
|
||||
{
|
||||
Rigidbody rigidbody = this.cubeRigidbody;
|
||||
int num = 0;
|
||||
Vector3 insideUnitSphere = UnityEngine.Random.insideUnitSphere;
|
||||
rigidbody.MovePosition(num);
|
||||
Rigidbody rigidbody2 = this.cubeRigidbody;
|
||||
int num2 = 0;
|
||||
Quaternion identity = Quaternion.identity;
|
||||
rigidbody2.MoveRotation(num2);
|
||||
Rigidbody rigidbody3 = this.cubeRigidbody;
|
||||
int num3 = 0;
|
||||
Vector3 zero = Vector3.zero;
|
||||
rigidbody3.velocity = num3;
|
||||
Rigidbody rigidbody4 = this.cubeRigidbody;
|
||||
int num4 = 0;
|
||||
float z = Vector3.zero.z;
|
||||
rigidbody4.angularVelocity = num4;
|
||||
}
|
||||
|
||||
// Token: 0x0600237E RID: 9086 RVA: 0x000513D4 File Offset: 0x0004F5D4
|
||||
[Token(Token = "0x600237E")]
|
||||
[Address(RVA = "0xBC8110", Offset = "0xBC6F10", VA = "0x180BC8110")]
|
||||
public MotionAbsorbCharacter()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002CFE RID: 11518
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002CFE")]
|
||||
public Animator animator;
|
||||
|
||||
// Token: 0x04002CFF RID: 11519
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002CFF")]
|
||||
public MotionAbsorb motionAbsorb;
|
||||
|
||||
// Token: 0x04002D00 RID: 11520
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002D00")]
|
||||
public Transform cube;
|
||||
|
||||
// Token: 0x04002D01 RID: 11521
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002D01")]
|
||||
public float cubeRandomPosition = 0.1f;
|
||||
|
||||
// Token: 0x04002D02 RID: 11522
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002D02")]
|
||||
public AnimationCurve motionAbsorbWeight;
|
||||
|
||||
// Token: 0x04002D03 RID: 11523
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002D03")]
|
||||
private Vector3 cubeDefaultPosition;
|
||||
|
||||
// Token: 0x04002D04 RID: 11524
|
||||
[FieldOffset(Offset = "0x4C")]
|
||||
[Token(Token = "0x4002D04")]
|
||||
private AnimatorStateInfo info;
|
||||
|
||||
// Token: 0x04002D05 RID: 11525
|
||||
[FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x4002D05")]
|
||||
private Rigidbody cubeRigidbody;
|
||||
}
|
||||
}
|
||||
71
Cpp2IL/Assembly-CSharp/RootMotion/Demos/OffsetEffector.cs
Normal file
71
Cpp2IL/Assembly-CSharp/RootMotion/Demos/OffsetEffector.cs
Normal file
@@ -0,0 +1,71 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003CA RID: 970
|
||||
[Token(Token = "0x20003CA")]
|
||||
public class OffsetEffector : OffsetModifier
|
||||
{
|
||||
// Token: 0x0600237F RID: 9087 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600237F")]
|
||||
[Address(RVA = "0xD37E90", Offset = "0xD36C90", VA = "0x180D37E90", Slot = "5")]
|
||||
protected override void Start()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002380 RID: 9088 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002380")]
|
||||
[Address(RVA = "0xD37C40", Offset = "0xD36A40", VA = "0x180D37C40", Slot = "4")]
|
||||
protected override void OnModifyOffset()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002381 RID: 9089 RVA: 0x000513F4 File Offset: 0x0004F5F4
|
||||
[Token(Token = "0x6002381")]
|
||||
[Address(RVA = "0xBE5C30", Offset = "0xBE4A30", VA = "0x180BE5C30")]
|
||||
public OffsetEffector()
|
||||
{
|
||||
this.weight = 1f;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04002D06 RID: 11526
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002D06")]
|
||||
public OffsetEffector.EffectorLink[] effectorLinks;
|
||||
|
||||
// Token: 0x020003CB RID: 971
|
||||
[Token(Token = "0x20003CB")]
|
||||
[Serializable]
|
||||
public class EffectorLink
|
||||
{
|
||||
// Token: 0x06002382 RID: 9090 RVA: 0x00051414 File Offset: 0x0004F614
|
||||
[Token(Token = "0x6002382")]
|
||||
[Address(RVA = "0x5FD950", Offset = "0x5FC750", VA = "0x1805FD950")]
|
||||
public EffectorLink()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002D07 RID: 11527
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4002D07")]
|
||||
public FullBodyBipedEffector effectorType;
|
||||
|
||||
// Token: 0x04002D08 RID: 11528
|
||||
[FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x4002D08")]
|
||||
public float weightMultiplier = 1f;
|
||||
|
||||
// Token: 0x04002D09 RID: 11529
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002D09")]
|
||||
[HideInInspector]
|
||||
public Vector3 localPosition;
|
||||
}
|
||||
}
|
||||
}
|
||||
140
Cpp2IL/Assembly-CSharp/RootMotion/Demos/PendulumExample.cs
Normal file
140
Cpp2IL/Assembly-CSharp/RootMotion/Demos/PendulumExample.cs
Normal file
@@ -0,0 +1,140 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003CC RID: 972
|
||||
[Token(Token = "0x20003CC")]
|
||||
[RequireComponent(typeof(FullBodyBipedIK))]
|
||||
public class PendulumExample : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002383 RID: 9091 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002383")]
|
||||
[Address(RVA = "0x311150", Offset = "0x30FF50", VA = "0x180311150")]
|
||||
private void Start()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002384 RID: 9092 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002384")]
|
||||
[Address(RVA = "0x310800", Offset = "0x30F600", VA = "0x180310800")]
|
||||
private void LateUpdate()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002385 RID: 9093 RVA: 0x00051434 File Offset: 0x0004F634
|
||||
[Token(Token = "0x6002385")]
|
||||
[Address(RVA = "0x311500", Offset = "0x310300", VA = "0x180311500")]
|
||||
public PendulumExample()
|
||||
{
|
||||
float z = Vector3.right.z;
|
||||
this.pelvisDownAxis.z = z;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04002D0A RID: 11530
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002D0A")]
|
||||
[Tooltip("The master weight of this script.")]
|
||||
[Range(0f, 1f)]
|
||||
public float weight = 1f;
|
||||
|
||||
// Token: 0x04002D0B RID: 11531
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4002D0B")]
|
||||
[Tooltip("Multiplier for the distance of the root to the target.")]
|
||||
public float hangingDistanceMlp = 1.3f;
|
||||
|
||||
// Token: 0x04002D0C RID: 11532
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002D0C")]
|
||||
[HideInInspector]
|
||||
[Tooltip("Where does the root of the character land when weight is blended out?")]
|
||||
public Vector3 rootTargetPosition;
|
||||
|
||||
// Token: 0x04002D0D RID: 11533
|
||||
[FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x4002D0D")]
|
||||
[HideInInspector]
|
||||
[Tooltip("How is the root of the character rotated when weight is blended out?")]
|
||||
public Quaternion rootTargetRotation;
|
||||
|
||||
// Token: 0x04002D0E RID: 11534
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002D0E")]
|
||||
[SerializeField]
|
||||
private Transform target;
|
||||
|
||||
// Token: 0x04002D0F RID: 11535
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002D0F")]
|
||||
[SerializeField]
|
||||
private Transform leftHandTarget;
|
||||
|
||||
// Token: 0x04002D10 RID: 11536
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4002D10")]
|
||||
[SerializeField]
|
||||
private Transform rightHandTarget;
|
||||
|
||||
// Token: 0x04002D11 RID: 11537
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4002D11")]
|
||||
[SerializeField]
|
||||
private Transform leftFootTarget;
|
||||
|
||||
// Token: 0x04002D12 RID: 11538
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4002D12")]
|
||||
[SerializeField]
|
||||
private Transform rightFootTarget;
|
||||
|
||||
// Token: 0x04002D13 RID: 11539
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4002D13")]
|
||||
[SerializeField]
|
||||
private Transform pelvisTarget;
|
||||
|
||||
// Token: 0x04002D14 RID: 11540
|
||||
[FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x4002D14")]
|
||||
[SerializeField]
|
||||
private Transform bodyTarget;
|
||||
|
||||
// Token: 0x04002D15 RID: 11541
|
||||
[FieldOffset(Offset = "0x78")]
|
||||
[Token(Token = "0x4002D15")]
|
||||
[SerializeField]
|
||||
private Transform headTarget;
|
||||
|
||||
// Token: 0x04002D16 RID: 11542
|
||||
[FieldOffset(Offset = "0x80")]
|
||||
[Token(Token = "0x4002D16")]
|
||||
[SerializeField]
|
||||
private Vector3 pelvisDownAxis;
|
||||
|
||||
// Token: 0x04002D17 RID: 11543
|
||||
[FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x4002D17")]
|
||||
private FullBodyBipedIK ik;
|
||||
|
||||
// Token: 0x04002D18 RID: 11544
|
||||
[FieldOffset(Offset = "0x98")]
|
||||
[Token(Token = "0x4002D18")]
|
||||
private Quaternion rootRelativeToPelvis;
|
||||
|
||||
// Token: 0x04002D19 RID: 11545
|
||||
[FieldOffset(Offset = "0xA8")]
|
||||
[Token(Token = "0x4002D19")]
|
||||
private Vector3 pelvisToRoot;
|
||||
|
||||
// Token: 0x04002D1A RID: 11546
|
||||
[FieldOffset(Offset = "0xB4")]
|
||||
[Token(Token = "0x4002D1A")]
|
||||
private float lastWeight;
|
||||
}
|
||||
}
|
||||
199
Cpp2IL/Assembly-CSharp/RootMotion/Demos/PickUp2Handed.cs
Normal file
199
Cpp2IL/Assembly-CSharp/RootMotion/Demos/PickUp2Handed.cs
Normal file
@@ -0,0 +1,199 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003CD RID: 973
|
||||
[Token(Token = "0x20003CD")]
|
||||
public abstract class PickUp2Handed : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002386 RID: 9094 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002386")]
|
||||
[Address(RVA = "0x312060", Offset = "0x310E60", VA = "0x180312060")]
|
||||
private void OnGUI()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002387 RID: 9095
|
||||
[Token(Token = "0x6002387")]
|
||||
[Address(Slot = "4")]
|
||||
protected abstract void RotatePivot();
|
||||
|
||||
// Token: 0x06002388 RID: 9096 RVA: 0x00051474 File Offset: 0x0004F674
|
||||
[Token(Token = "0x6002388")]
|
||||
[Address(RVA = "0x312470", Offset = "0x311270", VA = "0x180312470")]
|
||||
private void Start()
|
||||
{
|
||||
InteractionSystem interactionSystem = this.interactionSystem;
|
||||
InteractionSystem.InteractionDelegate interactionDelegate = new InteractionSystem.InteractionDelegate(this.OnStart);
|
||||
Delegate @delegate = Delegate.Combine(interactionDelegate, interactionDelegate);
|
||||
int num = 0;
|
||||
if (@delegate == 0 || @delegate != 0)
|
||||
{
|
||||
interactionSystem.OnInteractionStart = num;
|
||||
InteractionSystem interactionSystem2 = this.interactionSystem;
|
||||
InteractionSystem.InteractionDelegate onInteractionPause = interactionSystem2.OnInteractionPause;
|
||||
InteractionSystem.InteractionDelegate interactionDelegate2 = new InteractionSystem.InteractionDelegate(this.OnPause);
|
||||
Delegate delegate2 = Delegate.Combine(onInteractionPause, interactionDelegate2);
|
||||
if (delegate2 == 0 || delegate2 != 0)
|
||||
{
|
||||
interactionSystem2.OnInteractionPause = delegate2;
|
||||
InteractionSystem interactionSystem3 = this.interactionSystem;
|
||||
InteractionSystem.InteractionDelegate onInteractionResume = interactionSystem3.OnInteractionResume;
|
||||
InteractionSystem.InteractionDelegate interactionDelegate3 = new InteractionSystem.InteractionDelegate(this.OnDrop);
|
||||
Delegate delegate3 = Delegate.Combine(onInteractionResume, interactionDelegate3);
|
||||
if (delegate3 == 0 || delegate3 != 0)
|
||||
{
|
||||
interactionSystem3.OnInteractionResume = delegate3;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new InvalidCastException();
|
||||
}
|
||||
|
||||
// Token: 0x06002389 RID: 9097 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002389")]
|
||||
[Address(RVA = "0x3121F0", Offset = "0x310FF0", VA = "0x1803121F0")]
|
||||
private void OnPause(FullBodyBipedEffector effectorType, InteractionObject interactionObject)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600238A RID: 9098 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600238A")]
|
||||
[Address(RVA = "0x312390", Offset = "0x311190", VA = "0x180312390")]
|
||||
private void OnStart(FullBodyBipedEffector effectorType, InteractionObject interactionObject)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600238B RID: 9099 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600238B")]
|
||||
[Address(RVA = "0x311F30", Offset = "0x310D30", VA = "0x180311F30")]
|
||||
private void OnDrop(FullBodyBipedEffector effectorType, InteractionObject interactionObject)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600238C RID: 9100 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600238C")]
|
||||
[Address(RVA = "0x311B20", Offset = "0x310920", VA = "0x180311B20")]
|
||||
private void LateUpdate()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x17000200 RID: 512
|
||||
// (get) Token: 0x0600238D RID: 9101 RVA: 0x00051538 File Offset: 0x0004F738
|
||||
[Token(Token = "0x17000200")]
|
||||
private bool holding
|
||||
{
|
||||
[Token(Token = "0x600238D")]
|
||||
[Address(RVA = "0x312670", Offset = "0x311470", VA = "0x180312670")]
|
||||
get
|
||||
{
|
||||
return this.interactionSystem.IsPaused(FullBodyBipedEffector.LeftHand);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600238E RID: 9102 RVA: 0x00051558 File Offset: 0x0004F758
|
||||
[Token(Token = "0x600238E")]
|
||||
[Address(RVA = "0x311D00", Offset = "0x310B00", VA = "0x180311D00")]
|
||||
private void OnDestroy()
|
||||
{
|
||||
InteractionSystem interactionSystem = this.interactionSystem;
|
||||
int num = 0;
|
||||
if (!(interactionSystem == num))
|
||||
{
|
||||
InteractionSystem interactionSystem2 = this.interactionSystem;
|
||||
InteractionSystem.InteractionDelegate interactionDelegate = new InteractionSystem.InteractionDelegate(this.OnStart);
|
||||
Delegate @delegate = Delegate.Remove(interactionDelegate, interactionDelegate);
|
||||
int num2 = 0;
|
||||
if (@delegate == 0 || @delegate != 0)
|
||||
{
|
||||
interactionSystem2.OnInteractionStart = num2;
|
||||
InteractionSystem interactionSystem3 = this.interactionSystem;
|
||||
InteractionSystem.InteractionDelegate onInteractionPause = interactionSystem3.OnInteractionPause;
|
||||
InteractionSystem.InteractionDelegate interactionDelegate2 = new InteractionSystem.InteractionDelegate(this.OnPause);
|
||||
Delegate delegate2 = Delegate.Remove(onInteractionPause, interactionDelegate2);
|
||||
if (delegate2 == 0 || delegate2 != 0)
|
||||
{
|
||||
interactionSystem3.OnInteractionPause = delegate2;
|
||||
InteractionSystem interactionSystem4 = this.interactionSystem;
|
||||
InteractionSystem.InteractionDelegate onInteractionResume = interactionSystem4.OnInteractionResume;
|
||||
InteractionSystem.InteractionDelegate interactionDelegate3 = new InteractionSystem.InteractionDelegate(this.OnDrop);
|
||||
Delegate delegate3 = Delegate.Remove(onInteractionResume, interactionDelegate3);
|
||||
if (delegate3 == 0 || delegate3 != 0)
|
||||
{
|
||||
interactionSystem4.OnInteractionResume = delegate3;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new InvalidCastException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600238F RID: 9103 RVA: 0x00051638 File Offset: 0x0004F838
|
||||
[Token(Token = "0x600238F")]
|
||||
[Address(RVA = "0x312660", Offset = "0x311460", VA = "0x180312660")]
|
||||
protected PickUp2Handed()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002D1B RID: 11547
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002D1B")]
|
||||
[SerializeField]
|
||||
private int GUIspace;
|
||||
|
||||
// Token: 0x04002D1C RID: 11548
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002D1C")]
|
||||
public InteractionSystem interactionSystem;
|
||||
|
||||
// Token: 0x04002D1D RID: 11549
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002D1D")]
|
||||
public InteractionObject obj;
|
||||
|
||||
// Token: 0x04002D1E RID: 11550
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002D1E")]
|
||||
public Transform pivot;
|
||||
|
||||
// Token: 0x04002D1F RID: 11551
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002D1F")]
|
||||
public Transform holdPoint;
|
||||
|
||||
// Token: 0x04002D20 RID: 11552
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002D20")]
|
||||
public float pickUpTime = 0.3f;
|
||||
|
||||
// Token: 0x04002D21 RID: 11553
|
||||
[FieldOffset(Offset = "0x44")]
|
||||
[Token(Token = "0x4002D21")]
|
||||
private float holdWeight;
|
||||
|
||||
// Token: 0x04002D22 RID: 11554
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002D22")]
|
||||
private float holdWeightVel;
|
||||
|
||||
// Token: 0x04002D23 RID: 11555
|
||||
[FieldOffset(Offset = "0x4C")]
|
||||
[Token(Token = "0x4002D23")]
|
||||
private Vector3 pickUpPosition;
|
||||
|
||||
// Token: 0x04002D24 RID: 11556
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4002D24")]
|
||||
private Quaternion pickUpRotation;
|
||||
}
|
||||
}
|
||||
27
Cpp2IL/Assembly-CSharp/RootMotion/Demos/PickUpBox.cs
Normal file
27
Cpp2IL/Assembly-CSharp/RootMotion/Demos/PickUpBox.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003CE RID: 974
|
||||
[Token(Token = "0x20003CE")]
|
||||
public class PickUpBox : PickUp2Handed
|
||||
{
|
||||
// Token: 0x06002390 RID: 9104 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002390")]
|
||||
[Address(RVA = "0x3126A0", Offset = "0x3114A0", VA = "0x1803126A0", Slot = "4")]
|
||||
protected override void RotatePivot()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002391 RID: 9105 RVA: 0x00051658 File Offset: 0x0004F858
|
||||
[Token(Token = "0x6002391")]
|
||||
[Address(RVA = "0x312660", Offset = "0x311460", VA = "0x180312660")]
|
||||
public PickUpBox()
|
||||
{
|
||||
this.pickUpTime = 0.3f;
|
||||
base..ctor();
|
||||
}
|
||||
}
|
||||
}
|
||||
27
Cpp2IL/Assembly-CSharp/RootMotion/Demos/PickUpSphere.cs
Normal file
27
Cpp2IL/Assembly-CSharp/RootMotion/Demos/PickUpSphere.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003CF RID: 975
|
||||
[Token(Token = "0x20003CF")]
|
||||
public class PickUpSphere : PickUp2Handed
|
||||
{
|
||||
// Token: 0x06002392 RID: 9106 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002392")]
|
||||
[Address(RVA = "0x3128F0", Offset = "0x3116F0", VA = "0x1803128F0", Slot = "4")]
|
||||
protected override void RotatePivot()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002393 RID: 9107 RVA: 0x00051678 File Offset: 0x0004F878
|
||||
[Token(Token = "0x6002393")]
|
||||
[Address(RVA = "0x312660", Offset = "0x311460", VA = "0x180312660")]
|
||||
public PickUpSphere()
|
||||
{
|
||||
this.pickUpTime = 0.3f;
|
||||
base..ctor();
|
||||
}
|
||||
}
|
||||
}
|
||||
136
Cpp2IL/Assembly-CSharp/RootMotion/Demos/PlatformRotator.cs
Normal file
136
Cpp2IL/Assembly-CSharp/RootMotion/Demos/PlatformRotator.cs
Normal file
@@ -0,0 +1,136 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003DC RID: 988
|
||||
[Token(Token = "0x20003DC")]
|
||||
public class PlatformRotator : MonoBehaviour
|
||||
{
|
||||
// Token: 0x060023C9 RID: 9161 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023C9")]
|
||||
[Address(RVA = "0x312F30", Offset = "0x311D30", VA = "0x180312F30")]
|
||||
private void Start()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023CA RID: 9162 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023CA")]
|
||||
[Address(RVA = "0x312AF0", Offset = "0x3118F0", VA = "0x180312AF0")]
|
||||
private void FixedUpdate()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023CB RID: 9163 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023CB")]
|
||||
[Address(RVA = "0x3130A0", Offset = "0x311EA0", VA = "0x1803130A0")]
|
||||
private IEnumerator SwitchRotation()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023CC RID: 9164 RVA: 0x00051CC8 File Offset: 0x0004FEC8
|
||||
[Token(Token = "0x60023CC")]
|
||||
[Address(RVA = "0x312D80", Offset = "0x311B80", VA = "0x180312D80")]
|
||||
private void OnCollisionEnter(Collision collision)
|
||||
{
|
||||
if (collision.gameObject.layer == this.characterLayer)
|
||||
{
|
||||
CharacterThirdPerson component = collision.gameObject.GetComponent<CharacterThirdPerson>();
|
||||
int num = 0;
|
||||
bool flag = component == num;
|
||||
if (!flag && component.smoothPhysics != flag)
|
||||
{
|
||||
component.smoothPhysics = flag;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060023CD RID: 9165 RVA: 0x00051D18 File Offset: 0x0004FF18
|
||||
[Token(Token = "0x60023CD")]
|
||||
[Address(RVA = "0x312E60", Offset = "0x311C60", VA = "0x180312E60")]
|
||||
private void OnCollisionExit(Collision collision)
|
||||
{
|
||||
if (collision.gameObject.layer == this.characterLayer)
|
||||
{
|
||||
CharacterThirdPerson component = collision.gameObject.GetComponent<CharacterThirdPerson>();
|
||||
int num = 0;
|
||||
if (!(component == num))
|
||||
{
|
||||
component.smoothPhysics = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060023CE RID: 9166 RVA: 0x00051D60 File Offset: 0x0004FF60
|
||||
[Token(Token = "0x60023CE")]
|
||||
[Address(RVA = "0x313110", Offset = "0x311F10", VA = "0x180313110")]
|
||||
public PlatformRotator()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002D5B RID: 11611
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002D5B")]
|
||||
public float maxAngle = 70f;
|
||||
|
||||
// Token: 0x04002D5C RID: 11612
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4002D5C")]
|
||||
public float switchRotationTime = 0.5f;
|
||||
|
||||
// Token: 0x04002D5D RID: 11613
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002D5D")]
|
||||
public float random = 0.5f;
|
||||
|
||||
// Token: 0x04002D5E RID: 11614
|
||||
[FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x4002D5E")]
|
||||
public float rotationSpeed = 50f;
|
||||
|
||||
// Token: 0x04002D5F RID: 11615
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002D5F")]
|
||||
public Vector3 movePosition;
|
||||
|
||||
// Token: 0x04002D60 RID: 11616
|
||||
[FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x4002D60")]
|
||||
public float moveSpeed = 5f;
|
||||
|
||||
// Token: 0x04002D61 RID: 11617
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002D61")]
|
||||
public int characterLayer;
|
||||
|
||||
// Token: 0x04002D62 RID: 11618
|
||||
[FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x4002D62")]
|
||||
private Quaternion defaultRotation;
|
||||
|
||||
// Token: 0x04002D63 RID: 11619
|
||||
[FieldOffset(Offset = "0x4C")]
|
||||
[Token(Token = "0x4002D63")]
|
||||
private Quaternion targetRotation;
|
||||
|
||||
// Token: 0x04002D64 RID: 11620
|
||||
[FieldOffset(Offset = "0x5C")]
|
||||
[Token(Token = "0x4002D64")]
|
||||
private Vector3 targetPosition;
|
||||
|
||||
// Token: 0x04002D65 RID: 11621
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4002D65")]
|
||||
private Vector3 velocity;
|
||||
|
||||
// Token: 0x04002D66 RID: 11622
|
||||
[FieldOffset(Offset = "0x78")]
|
||||
[Token(Token = "0x4002D66")]
|
||||
private Rigidbody r;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003D0 RID: 976
|
||||
[Token(Token = "0x20003D0")]
|
||||
public class RagdollUtilityDemo : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002394 RID: 9108 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002394")]
|
||||
[Address(RVA = "0xBE3D80", Offset = "0xBE2B80", VA = "0x180BE3D80")]
|
||||
private void OnGUI()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002395 RID: 9109 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002395")]
|
||||
[Address(RVA = "0xBE3DD0", Offset = "0xBE2BD0", VA = "0x180BE3DD0")]
|
||||
private void Update()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002396 RID: 9110 RVA: 0x00051698 File Offset: 0x0004F898
|
||||
[Token(Token = "0x6002396")]
|
||||
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
|
||||
public RagdollUtilityDemo()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002D25 RID: 11557
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002D25")]
|
||||
public RagdollUtility ragdollUtility;
|
||||
|
||||
// Token: 0x04002D26 RID: 11558
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002D26")]
|
||||
public Transform root;
|
||||
|
||||
// Token: 0x04002D27 RID: 11559
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002D27")]
|
||||
public Rigidbody pelvis;
|
||||
}
|
||||
}
|
||||
74
Cpp2IL/Assembly-CSharp/RootMotion/Demos/RecoilTest.cs
Normal file
74
Cpp2IL/Assembly-CSharp/RootMotion/Demos/RecoilTest.cs
Normal file
@@ -0,0 +1,74 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003D1 RID: 977
|
||||
[Token(Token = "0x20003D1")]
|
||||
[RequireComponent(typeof(Recoil))]
|
||||
public class RecoilTest : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002397 RID: 9111 RVA: 0x000516AC File Offset: 0x0004F8AC
|
||||
[Token(Token = "0x6002397")]
|
||||
[Address(RVA = "0xBE5B90", Offset = "0xBE4990", VA = "0x180BE5B90")]
|
||||
private void Start()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06002397)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RootMotion.Demos.RecoilTest::Start()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{; Block_0:; stloc:Recoil(var_0_06, call:Recoil(Component::GetComponent, ldloc:RecoilTest[exp:Component](this))); stfld:Recoil(RecoilTest::recoil, ldloc:RecoilTest(this), ldloc:Recoil(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: 0x06002398 RID: 9112 RVA: 0x000516C8 File Offset: 0x0004F8C8
|
||||
[Token(Token = "0x6002398")]
|
||||
[Address(RVA = "0xBE5BE0", Offset = "0xBE49E0", VA = "0x180BE5BE0")]
|
||||
private void Update()
|
||||
{
|
||||
if (Input.GetKeyDownInt(KeyCode.R) || Input.GetMouseButtonDown(0))
|
||||
{
|
||||
Recoil recoil = this.recoil;
|
||||
float num = this.magnitude;
|
||||
recoil.Fire(num);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06002399 RID: 9113 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002399")]
|
||||
[Address(RVA = "0xBE5B40", Offset = "0xBE4940", VA = "0x180BE5B40")]
|
||||
private void OnGUI()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600239A RID: 9114 RVA: 0x00051704 File Offset: 0x0004F904
|
||||
[Token(Token = "0x600239A")]
|
||||
[Address(RVA = "0xBE5C30", Offset = "0xBE4A30", VA = "0x180BE5C30")]
|
||||
public RecoilTest()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002D28 RID: 11560
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002D28")]
|
||||
public float magnitude = 1f;
|
||||
|
||||
// Token: 0x04002D29 RID: 11561
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002D29")]
|
||||
private Recoil recoil;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003D2 RID: 978
|
||||
[Token(Token = "0x20003D2")]
|
||||
public class ResetInteractionObject : MonoBehaviour
|
||||
{
|
||||
// Token: 0x0600239B RID: 9115 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600239B")]
|
||||
[Address(RVA = "0xBE7CC0", Offset = "0xBE6AC0", VA = "0x180BE7CC0")]
|
||||
private void Start()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600239C RID: 9116 RVA: 0x00051724 File Offset: 0x0004F924
|
||||
[Token(Token = "0x600239C")]
|
||||
[Address(RVA = "0xBE7B90", Offset = "0xBE6990", VA = "0x180BE7B90")]
|
||||
private void OnPickUp(Transform t)
|
||||
{
|
||||
base.StopAllCoroutines();
|
||||
float time = Time.time;
|
||||
float num = this.resetDelay;
|
||||
int num2;
|
||||
ResetInteractionObject.<ResetObject>d__7 <ResetObject>d__ = new ResetInteractionObject.<ResetObject>d__7(num2);
|
||||
num2 = 0;
|
||||
<ResetObject>d__.<>4__this = this;
|
||||
<ResetObject>d__.resetTime = num;
|
||||
Coroutine coroutine = base.StartCoroutine(<ResetObject>d__);
|
||||
}
|
||||
|
||||
// Token: 0x0600239D RID: 9117 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600239D")]
|
||||
[Address(RVA = "0xBE7C40", Offset = "0xBE6A40", VA = "0x180BE7C40")]
|
||||
private IEnumerator ResetObject(float resetTime)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600239E RID: 9118 RVA: 0x00051770 File Offset: 0x0004F970
|
||||
[Token(Token = "0x600239E")]
|
||||
[Address(RVA = "0xBE5C30", Offset = "0xBE4A30", VA = "0x180BE5C30")]
|
||||
public ResetInteractionObject()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002D2A RID: 11562
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002D2A")]
|
||||
public float resetDelay = 1f;
|
||||
|
||||
// Token: 0x04002D2B RID: 11563
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4002D2B")]
|
||||
private Vector3 defaultPosition;
|
||||
|
||||
// Token: 0x04002D2C RID: 11564
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002D2C")]
|
||||
private Quaternion defaultRotation;
|
||||
|
||||
// Token: 0x04002D2D RID: 11565
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002D2D")]
|
||||
private Transform defaultParent;
|
||||
|
||||
// Token: 0x04002D2E RID: 11566
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002D2E")]
|
||||
private Rigidbody r;
|
||||
}
|
||||
}
|
||||
128
Cpp2IL/Assembly-CSharp/RootMotion/Demos/SimpleAimingSystem.cs
Normal file
128
Cpp2IL/Assembly-CSharp/RootMotion/Demos/SimpleAimingSystem.cs
Normal file
@@ -0,0 +1,128 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003A7 RID: 935
|
||||
[Token(Token = "0x20003A7")]
|
||||
public class SimpleAimingSystem : MonoBehaviour
|
||||
{
|
||||
// Token: 0x060022F9 RID: 8953 RVA: 0x000505AC File Offset: 0x0004E7AC
|
||||
[Token(Token = "0x60022F9")]
|
||||
[Address(RVA = "0x11F2B20", Offset = "0x11F1920", VA = "0x1811F2B20")]
|
||||
private void Start()
|
||||
{
|
||||
AimIK aimIK = this.aim;
|
||||
int num = 0;
|
||||
aimIK.enabled = num != 0;
|
||||
LookAtIK lookAtIK = this.lookAt;
|
||||
int num2 = 0;
|
||||
lookAtIK.enabled = num2 != 0;
|
||||
}
|
||||
|
||||
// Token: 0x060022FA RID: 8954 RVA: 0x000505E0 File Offset: 0x0004E7E0
|
||||
[Token(Token = "0x60022FA")]
|
||||
[Address(RVA = "0x11F2560", Offset = "0x11F1360", VA = "0x1811F2560")]
|
||||
private void LateUpdate()
|
||||
{
|
||||
Transform target = this.aim.solver.target;
|
||||
int num = 0;
|
||||
if (target == num)
|
||||
{
|
||||
Transform transform = base.transform;
|
||||
Debug.LogWarning("AimIK and LookAtIK need to have their 'Target' value assigned.", transform);
|
||||
}
|
||||
this.Pose();
|
||||
this.aim.solver.Update();
|
||||
LookAtIK lookAtIK = this.lookAt;
|
||||
int num2 = 0;
|
||||
if (lookAtIK != num2)
|
||||
{
|
||||
this.lookAt.solver.Update();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060022FB RID: 8955 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60022FB")]
|
||||
[Address(RVA = "0x11F28B0", Offset = "0x11F16B0", VA = "0x1811F28B0")]
|
||||
private void Pose()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060022FC RID: 8956 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60022FC")]
|
||||
[Address(RVA = "0x11F26B0", Offset = "0x11F14B0", VA = "0x1811F26B0")]
|
||||
private void LimitAimTarget()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060022FD RID: 8957 RVA: 0x00050660 File Offset: 0x0004E860
|
||||
[Token(Token = "0x60022FD")]
|
||||
[Address(RVA = "0x11F24D0", Offset = "0x11F12D0", VA = "0x1811F24D0")]
|
||||
private void DirectCrossFade(string state, float target)
|
||||
{
|
||||
float @float = this.animator.GetFloat(state);
|
||||
float num = Time.deltaTime;
|
||||
num = @float;
|
||||
float num2 = Mathf.MoveTowards(num, target, 1f);
|
||||
this.animator.SetFloat(state, num2);
|
||||
}
|
||||
|
||||
// Token: 0x060022FE RID: 8958 RVA: 0x000506A4 File Offset: 0x0004E8A4
|
||||
[Token(Token = "0x60022FE")]
|
||||
[Address(RVA = "0x11F2B60", Offset = "0x11F1960", VA = "0x1811F2B60")]
|
||||
public SimpleAimingSystem()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002C16 RID: 11286
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002C16")]
|
||||
[Tooltip("AimPoser is a tool that returns an animation name based on direction.")]
|
||||
public AimPoser aimPoser;
|
||||
|
||||
// Token: 0x04002C17 RID: 11287
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002C17")]
|
||||
[Tooltip("Reference to the AimIK component.")]
|
||||
public AimIK aim;
|
||||
|
||||
// Token: 0x04002C18 RID: 11288
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002C18")]
|
||||
[Tooltip("Reference to the LookAt component (only used for the head in this instance).")]
|
||||
public LookAtIK lookAt;
|
||||
|
||||
// Token: 0x04002C19 RID: 11289
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002C19")]
|
||||
[Tooltip("Reference to the Animator component.")]
|
||||
public Animator animator;
|
||||
|
||||
// Token: 0x04002C1A RID: 11290
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002C1A")]
|
||||
[Tooltip("Time of cross-fading from pose to pose.")]
|
||||
public float crossfadeTime = 0.2f;
|
||||
|
||||
// Token: 0x04002C1B RID: 11291
|
||||
[FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x4002C1B")]
|
||||
[Tooltip("Will keep the aim target at a distance.")]
|
||||
public float minAimDistance = 0.5f;
|
||||
|
||||
// Token: 0x04002C1C RID: 11292
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002C1C")]
|
||||
private AimPoser.Pose aimPose;
|
||||
|
||||
// Token: 0x04002C1D RID: 11293
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002C1D")]
|
||||
private AimPoser.Pose lastPose;
|
||||
}
|
||||
}
|
||||
181
Cpp2IL/Assembly-CSharp/RootMotion/Demos/SimpleLocomotion.cs
Normal file
181
Cpp2IL/Assembly-CSharp/RootMotion/Demos/SimpleLocomotion.cs
Normal file
@@ -0,0 +1,181 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003E9 RID: 1001
|
||||
[Token(Token = "0x20003E9")]
|
||||
[RequireComponent(typeof(Animator))]
|
||||
public class SimpleLocomotion : MonoBehaviour
|
||||
{
|
||||
// Token: 0x1700020A RID: 522
|
||||
// (get) Token: 0x0600240B RID: 9227 RVA: 0x000521C8 File Offset: 0x000503C8
|
||||
// (set) Token: 0x0600240C RID: 9228 RVA: 0x000521DC File Offset: 0x000503DC
|
||||
[Token(Token = "0x1700020A")]
|
||||
public bool isGrounded
|
||||
{
|
||||
[Token(Token = "0x600240B")]
|
||||
[Address(RVA = "0x584D60", Offset = "0x583B60", VA = "0x180584D60")]
|
||||
get;
|
||||
[Token(Token = "0x600240C")]
|
||||
[Address(RVA = "0x8EC310", Offset = "0x8EB110", VA = "0x1808EC310")]
|
||||
private set;
|
||||
}
|
||||
|
||||
// Token: 0x0600240D RID: 9229 RVA: 0x000521F0 File Offset: 0x000503F0
|
||||
[Token(Token = "0x600240D")]
|
||||
[Address(RVA = "0x11F3390", Offset = "0x11F2190", VA = "0x1811F3390")]
|
||||
private void Start()
|
||||
{
|
||||
Animator component = base.GetComponent<Animator>();
|
||||
this.animator = component;
|
||||
CharacterController component2 = base.GetComponent<CharacterController>();
|
||||
this.characterController = component2;
|
||||
CameraController cameraController = this.cameraController;
|
||||
int num = 0;
|
||||
cameraController.enabled = num != 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600240E RID: 9230 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600240E")]
|
||||
[Address(RVA = "0x11F3420", Offset = "0x11F2220", VA = "0x1811F3420")]
|
||||
private void Update()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600240F RID: 9231 RVA: 0x00052230 File Offset: 0x00050430
|
||||
[Token(Token = "0x600240F")]
|
||||
[Address(RVA = "0x11F2CC0", Offset = "0x11F1AC0", VA = "0x1811F2CC0")]
|
||||
private void LateUpdate()
|
||||
{
|
||||
this.cameraController.UpdateInput();
|
||||
this.cameraController.UpdateTransform();
|
||||
}
|
||||
|
||||
// Token: 0x06002410 RID: 9232 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002410")]
|
||||
[Address(RVA = "0x11F2FE0", Offset = "0x11F1DE0", VA = "0x1811F2FE0")]
|
||||
private void Rotate()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002411 RID: 9233 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002411")]
|
||||
[Address(RVA = "0x11F2D00", Offset = "0x11F1B00", VA = "0x1811F2D00")]
|
||||
private void Move()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002412 RID: 9234 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002412")]
|
||||
[Address(RVA = "0x11F2C00", Offset = "0x11F1A00", VA = "0x1811F2C00")]
|
||||
private Vector3 GetInputVector()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002413 RID: 9235 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002413")]
|
||||
[Address(RVA = "0x11F2B80", Offset = "0x11F1980", VA = "0x1811F2B80")]
|
||||
private Vector3 GetInputVectorRaw()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002414 RID: 9236 RVA: 0x0005225C File Offset: 0x0005045C
|
||||
[Token(Token = "0x6002414")]
|
||||
[Address(RVA = "0x11F3480", Offset = "0x11F2280", VA = "0x1811F3480")]
|
||||
public SimpleLocomotion()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002DD0 RID: 11728
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002DD0")]
|
||||
[SerializeField]
|
||||
[Tooltip("The component that updates the camera.")]
|
||||
private CameraController cameraController;
|
||||
|
||||
// Token: 0x04002DD1 RID: 11729
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002DD1")]
|
||||
[SerializeField]
|
||||
[Tooltip("Acceleration of movement.")]
|
||||
private float accelerationTime = 0.2f;
|
||||
|
||||
// Token: 0x04002DD2 RID: 11730
|
||||
[FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x4002DD2")]
|
||||
[SerializeField]
|
||||
[Tooltip("Turning speed.")]
|
||||
private float turnTime = 0.2f;
|
||||
|
||||
// Token: 0x04002DD3 RID: 11731
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002DD3")]
|
||||
[SerializeField]
|
||||
[Tooltip("If true, will run on left shift, if not will walk on left shift.")]
|
||||
private bool walkByDefault = true;
|
||||
|
||||
// Token: 0x04002DD4 RID: 11732
|
||||
[FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x4002DD4")]
|
||||
[SerializeField]
|
||||
[Tooltip("Smooth or linear rotation.")]
|
||||
private SimpleLocomotion.RotationMode rotationMode;
|
||||
|
||||
// Token: 0x04002DD5 RID: 11733
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002DD5")]
|
||||
[SerializeField]
|
||||
[Tooltip("Procedural motion speed (if not using root motion).")]
|
||||
private float moveSpeed = 3f;
|
||||
|
||||
// Token: 0x04002DD7 RID: 11735
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002DD7")]
|
||||
private Animator animator;
|
||||
|
||||
// Token: 0x04002DD8 RID: 11736
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002DD8")]
|
||||
private float speed;
|
||||
|
||||
// Token: 0x04002DD9 RID: 11737
|
||||
[FieldOffset(Offset = "0x44")]
|
||||
[Token(Token = "0x4002DD9")]
|
||||
private float angleVel;
|
||||
|
||||
// Token: 0x04002DDA RID: 11738
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002DDA")]
|
||||
private float speedVel;
|
||||
|
||||
// Token: 0x04002DDB RID: 11739
|
||||
[FieldOffset(Offset = "0x4C")]
|
||||
[Token(Token = "0x4002DDB")]
|
||||
private Vector3 linearTargetDirection;
|
||||
|
||||
// Token: 0x04002DDC RID: 11740
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4002DDC")]
|
||||
private CharacterController characterController;
|
||||
|
||||
// Token: 0x020003EA RID: 1002
|
||||
[Token(Token = "0x20003EA")]
|
||||
[Serializable]
|
||||
public enum RotationMode
|
||||
{
|
||||
// Token: 0x04002DDE RID: 11742
|
||||
[Token(Token = "0x4002DDE")]
|
||||
Smooth,
|
||||
// Token: 0x04002DDF RID: 11743
|
||||
[Token(Token = "0x4002DDF")]
|
||||
Linear
|
||||
}
|
||||
}
|
||||
}
|
||||
73
Cpp2IL/Assembly-CSharp/RootMotion/Demos/SlowMo.cs
Normal file
73
Cpp2IL/Assembly-CSharp/RootMotion/Demos/SlowMo.cs
Normal file
@@ -0,0 +1,73 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003EF RID: 1007
|
||||
[Token(Token = "0x20003EF")]
|
||||
public class SlowMo : MonoBehaviour
|
||||
{
|
||||
// Token: 0x0600241C RID: 9244 RVA: 0x0005234C File Offset: 0x0005054C
|
||||
[Token(Token = "0x600241C")]
|
||||
[Address(RVA = "0x11F3A90", Offset = "0x11F2890", VA = "0x1811F3A90")]
|
||||
private void Update()
|
||||
{
|
||||
if ((!this.mouse0 || !Input.GetMouseButton(0)) && (!this.mouse1 || !Input.GetMouseButton(1)))
|
||||
{
|
||||
KeyCode[] array = this.keyCodes;
|
||||
int num = 0;
|
||||
if (num >= array.Length)
|
||||
{
|
||||
Time.timeScale = 1f;
|
||||
return;
|
||||
}
|
||||
if (!Input.GetKeyInt(array[num]))
|
||||
{
|
||||
KeyCode[] array2 = this.keyCodes;
|
||||
num++;
|
||||
}
|
||||
}
|
||||
Time.timeScale = this.slowMoTimeScale;
|
||||
}
|
||||
|
||||
// Token: 0x0600241D RID: 9245 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600241D")]
|
||||
[Address(RVA = "0x11F39E0", Offset = "0x11F27E0", VA = "0x1811F39E0")]
|
||||
private bool IsSlowMotion()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600241E RID: 9246 RVA: 0x000523C8 File Offset: 0x000505C8
|
||||
[Token(Token = "0x600241E")]
|
||||
[Address(RVA = "0x11F3B50", Offset = "0x11F2950", VA = "0x1811F3B50")]
|
||||
public SlowMo()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002DED RID: 11757
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002DED")]
|
||||
[SerializeField]
|
||||
private KeyCode[] keyCodes;
|
||||
|
||||
// Token: 0x04002DEE RID: 11758
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002DEE")]
|
||||
[SerializeField]
|
||||
private bool mouse0;
|
||||
|
||||
// Token: 0x04002DEF RID: 11759
|
||||
[FieldOffset(Offset = "0x21")]
|
||||
[Token(Token = "0x4002DEF")]
|
||||
[SerializeField]
|
||||
private bool mouse1;
|
||||
|
||||
// Token: 0x04002DF0 RID: 11760
|
||||
[FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x4002DF0")]
|
||||
[SerializeField]
|
||||
private float slowMoTimeScale = 0.3f;
|
||||
}
|
||||
}
|
||||
51
Cpp2IL/Assembly-CSharp/RootMotion/Demos/SoccerDemo.cs
Normal file
51
Cpp2IL/Assembly-CSharp/RootMotion/Demos/SoccerDemo.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003D4 RID: 980
|
||||
[Token(Token = "0x20003D4")]
|
||||
[RequireComponent(typeof(Animator))]
|
||||
public class SoccerDemo : MonoBehaviour
|
||||
{
|
||||
// Token: 0x060023A5 RID: 9125 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023A5")]
|
||||
[Address(RVA = "0x11F3C00", Offset = "0x11F2A00", VA = "0x1811F3C00")]
|
||||
private void Start()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023A6 RID: 9126 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023A6")]
|
||||
[Address(RVA = "0x11F3B90", Offset = "0x11F2990", VA = "0x1811F3B90")]
|
||||
private IEnumerator ResetDelayed()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023A7 RID: 9127 RVA: 0x000517E8 File Offset: 0x0004F9E8
|
||||
[Token(Token = "0x60023A7")]
|
||||
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
|
||||
public SoccerDemo()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002D33 RID: 11571
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002D33")]
|
||||
private Animator animator;
|
||||
|
||||
// Token: 0x04002D34 RID: 11572
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002D34")]
|
||||
private Vector3 defaultPosition;
|
||||
|
||||
// Token: 0x04002D35 RID: 11573
|
||||
[FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x4002D35")]
|
||||
private Quaternion defaultRotation;
|
||||
}
|
||||
}
|
||||
76
Cpp2IL/Assembly-CSharp/RootMotion/Demos/TerrainOffset.cs
Normal file
76
Cpp2IL/Assembly-CSharp/RootMotion/Demos/TerrainOffset.cs
Normal file
@@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003A8 RID: 936
|
||||
[Token(Token = "0x20003A8")]
|
||||
public class TerrainOffset : MonoBehaviour
|
||||
{
|
||||
// Token: 0x060022FF RID: 8959 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60022FF")]
|
||||
[Address(RVA = "0x12FE9C0", Offset = "0x12FD7C0", VA = "0x1812FE9C0")]
|
||||
private void LateUpdate()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002300 RID: 8960 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002300")]
|
||||
[Address(RVA = "0x12FE780", Offset = "0x12FD580", VA = "0x1812FE780")]
|
||||
private Vector3 GetGroundHeightOffset(Vector3 worldPosition)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002301 RID: 8961 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002301")]
|
||||
[Address(RVA = "0x12FEC70", Offset = "0x12FDA70", VA = "0x1812FEC70")]
|
||||
public TerrainOffset()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x04002C1E RID: 11294
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002C1E")]
|
||||
public AimIK aimIK;
|
||||
|
||||
// Token: 0x04002C1F RID: 11295
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002C1F")]
|
||||
public Vector3 raycastOffset;
|
||||
|
||||
// Token: 0x04002C20 RID: 11296
|
||||
[FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x4002C20")]
|
||||
public LayerMask raycastLayers;
|
||||
|
||||
// Token: 0x04002C21 RID: 11297
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002C21")]
|
||||
public float min;
|
||||
|
||||
// Token: 0x04002C22 RID: 11298
|
||||
[FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x4002C22")]
|
||||
public float max;
|
||||
|
||||
// Token: 0x04002C23 RID: 11299
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002C23")]
|
||||
public float lerpSpeed;
|
||||
|
||||
// Token: 0x04002C24 RID: 11300
|
||||
[FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x4002C24")]
|
||||
private RaycastHit hit;
|
||||
|
||||
// Token: 0x04002C25 RID: 11301
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4002C25")]
|
||||
private Vector3 offset;
|
||||
}
|
||||
}
|
||||
288
Cpp2IL/Assembly-CSharp/RootMotion/Demos/TouchWalls.cs
Normal file
288
Cpp2IL/Assembly-CSharp/RootMotion/Demos/TouchWalls.cs
Normal file
@@ -0,0 +1,288 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003D6 RID: 982
|
||||
[Token(Token = "0x20003D6")]
|
||||
public class TouchWalls : MonoBehaviour
|
||||
{
|
||||
// Token: 0x060023AE RID: 9134 RVA: 0x00051854 File Offset: 0x0004FA54
|
||||
[Token(Token = "0x60023AE")]
|
||||
[Address(RVA = "0x1303370", Offset = "0x1302170", VA = "0x181303370")]
|
||||
private void Start()
|
||||
{
|
||||
TouchWalls.EffectorLink[] array = this.effectorLinks;
|
||||
int num = 0;
|
||||
int length = array.Length;
|
||||
if (num < length)
|
||||
{
|
||||
TouchWalls.EffectorLink effectorLink = array[num];
|
||||
InteractionSystem interactionSystem = this.interactionSystem;
|
||||
effectorLink.Initiate(interactionSystem);
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060023AF RID: 9135 RVA: 0x00051898 File Offset: 0x0004FA98
|
||||
[Token(Token = "0x60023AF")]
|
||||
[Address(RVA = "0x1303220", Offset = "0x1302020", VA = "0x181303220")]
|
||||
private void FixedUpdate()
|
||||
{
|
||||
TouchWalls.EffectorLink[] array = this.effectorLinks;
|
||||
int num = 0;
|
||||
if (num < array.Length)
|
||||
{
|
||||
TouchWalls.EffectorLink effectorLink = array[num];
|
||||
InteractionSystem interactionSystem = this.interactionSystem;
|
||||
effectorLink.Update(interactionSystem);
|
||||
TouchWalls.EffectorLink[] array2 = this.effectorLinks;
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060023B0 RID: 9136 RVA: 0x000518E0 File Offset: 0x0004FAE0
|
||||
[Token(Token = "0x60023B0")]
|
||||
[Address(RVA = "0x13032A0", Offset = "0x13020A0", VA = "0x1813032A0")]
|
||||
private void OnDestroy()
|
||||
{
|
||||
InteractionSystem interactionSystem = this.interactionSystem;
|
||||
int num = 0;
|
||||
if (interactionSystem != num)
|
||||
{
|
||||
TouchWalls.EffectorLink[] array = this.effectorLinks;
|
||||
int num2 = 0;
|
||||
if (num2 < array.Length)
|
||||
{
|
||||
TouchWalls.EffectorLink effectorLink = array[num2];
|
||||
InteractionSystem interactionSystem2 = this.interactionSystem;
|
||||
effectorLink.Destroy(interactionSystem2);
|
||||
TouchWalls.EffectorLink[] array2 = this.effectorLinks;
|
||||
num2++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060023B1 RID: 9137 RVA: 0x00051940 File Offset: 0x0004FB40
|
||||
[Token(Token = "0x60023B1")]
|
||||
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
|
||||
public TouchWalls()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002D39 RID: 11577
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002D39")]
|
||||
public InteractionSystem interactionSystem;
|
||||
|
||||
// Token: 0x04002D3A RID: 11578
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002D3A")]
|
||||
public TouchWalls.EffectorLink[] effectorLinks;
|
||||
|
||||
// Token: 0x020003D7 RID: 983
|
||||
[Token(Token = "0x20003D7")]
|
||||
[Serializable]
|
||||
public class EffectorLink
|
||||
{
|
||||
// Token: 0x060023B2 RID: 9138 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023B2")]
|
||||
[Address(RVA = "0x69D140", Offset = "0x69BF40", VA = "0x18069D140")]
|
||||
public void Initiate(InteractionSystem interactionSystem)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023B3 RID: 9139 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023B3")]
|
||||
[Address(RVA = "0x69D020", Offset = "0x69BE20", VA = "0x18069D020")]
|
||||
private bool FindWalls(Vector3 direction)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023B4 RID: 9140 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023B4")]
|
||||
[Address(RVA = "0x69D830", Offset = "0x69C630", VA = "0x18069D830")]
|
||||
public void Update(InteractionSystem interactionSystem)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023B5 RID: 9141 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023B5")]
|
||||
[Address(RVA = "0x69D6C0", Offset = "0x69C4C0", VA = "0x18069D6C0")]
|
||||
private void StopTouch(InteractionSystem interactionSystem)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023B6 RID: 9142 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023B6")]
|
||||
[Address(RVA = "0x69D5C0", Offset = "0x69C3C0", VA = "0x18069D5C0")]
|
||||
private void OnInteractionStart(FullBodyBipedEffector effectorType, InteractionObject interactionObject)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023B7 RID: 9143 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023B7")]
|
||||
[Address(RVA = "0x69D540", Offset = "0x69C340", VA = "0x18069D540")]
|
||||
private void OnInteractionResume(FullBodyBipedEffector effectorType, InteractionObject interactionObject)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023B8 RID: 9144 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023B8")]
|
||||
[Address(RVA = "0x69D640", Offset = "0x69C440", VA = "0x18069D640")]
|
||||
private void OnInteractionStop(FullBodyBipedEffector effectorType, InteractionObject interactionObject)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023B9 RID: 9145 RVA: 0x00051954 File Offset: 0x0004FB54
|
||||
[Token(Token = "0x60023B9")]
|
||||
[Address(RVA = "0x69CE30", Offset = "0x69BC30", VA = "0x18069CE30")]
|
||||
public void Destroy(InteractionSystem interactionSystem)
|
||||
{
|
||||
if (this.initiated)
|
||||
{
|
||||
InteractionSystem.InteractionDelegate onInteractionStart = interactionSystem.OnInteractionStart;
|
||||
InteractionSystem.InteractionDelegate interactionDelegate = new InteractionSystem.InteractionDelegate(this.OnInteractionStart);
|
||||
Delegate @delegate = Delegate.Remove(onInteractionStart, interactionDelegate);
|
||||
int num = 0;
|
||||
if (@delegate == 0 || @delegate != 0)
|
||||
{
|
||||
interactionSystem.OnInteractionStart = num;
|
||||
InteractionSystem.InteractionDelegate onInteractionResume = interactionSystem.OnInteractionResume;
|
||||
InteractionSystem.InteractionDelegate interactionDelegate2 = new InteractionSystem.InteractionDelegate(this.OnInteractionResume);
|
||||
Delegate delegate2 = Delegate.Remove(onInteractionResume, interactionDelegate2);
|
||||
if (delegate2 == 0 || delegate2 != 0)
|
||||
{
|
||||
interactionSystem.OnInteractionResume = delegate2;
|
||||
InteractionSystem.InteractionDelegate onInteractionStop = interactionSystem.OnInteractionStop;
|
||||
InteractionSystem.InteractionDelegate interactionDelegate3 = new InteractionSystem.InteractionDelegate(this.OnInteractionStop);
|
||||
Delegate delegate3 = Delegate.Remove(onInteractionStop, interactionDelegate3);
|
||||
if (delegate3 == 0 || delegate3 != 0)
|
||||
{
|
||||
interactionSystem.OnInteractionStop = delegate3;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new InvalidCastException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060023BA RID: 9146 RVA: 0x00051A10 File Offset: 0x0004FC10
|
||||
[Token(Token = "0x60023BA")]
|
||||
[Address(RVA = "0x69E050", Offset = "0x69CE50", VA = "0x18069E050")]
|
||||
public EffectorLink()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002D3B RID: 11579
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4002D3B")]
|
||||
public bool enabled = true;
|
||||
|
||||
// Token: 0x04002D3C RID: 11580
|
||||
[FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x4002D3C")]
|
||||
public FullBodyBipedEffector effectorType;
|
||||
|
||||
// Token: 0x04002D3D RID: 11581
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002D3D")]
|
||||
public InteractionObject interactionObject;
|
||||
|
||||
// Token: 0x04002D3E RID: 11582
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002D3E")]
|
||||
public Transform spherecastFrom;
|
||||
|
||||
// Token: 0x04002D3F RID: 11583
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002D3F")]
|
||||
public float spherecastRadius = 0.1f;
|
||||
|
||||
// Token: 0x04002D40 RID: 11584
|
||||
[FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x4002D40")]
|
||||
public float minDistance = 0.3f;
|
||||
|
||||
// Token: 0x04002D41 RID: 11585
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002D41")]
|
||||
public LayerMask touchLayers;
|
||||
|
||||
// Token: 0x04002D42 RID: 11586
|
||||
[FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x4002D42")]
|
||||
public float lerpSpeed = 10f;
|
||||
|
||||
// Token: 0x04002D43 RID: 11587
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002D43")]
|
||||
public float minSwitchTime = 0.2f;
|
||||
|
||||
// Token: 0x04002D44 RID: 11588
|
||||
[FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x4002D44")]
|
||||
public float releaseDistance = 0.4f;
|
||||
|
||||
// Token: 0x04002D45 RID: 11589
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002D45")]
|
||||
public bool sliding;
|
||||
|
||||
// Token: 0x04002D46 RID: 11590
|
||||
[FieldOffset(Offset = "0x44")]
|
||||
[Token(Token = "0x4002D46")]
|
||||
private Vector3 raycastDirectionLocal;
|
||||
|
||||
// Token: 0x04002D47 RID: 11591
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4002D47")]
|
||||
private float raycastDistance;
|
||||
|
||||
// Token: 0x04002D48 RID: 11592
|
||||
[FieldOffset(Offset = "0x54")]
|
||||
[Token(Token = "0x4002D48")]
|
||||
private bool inTouch;
|
||||
|
||||
// Token: 0x04002D49 RID: 11593
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4002D49")]
|
||||
private RaycastHit hit;
|
||||
|
||||
// Token: 0x04002D4A RID: 11594
|
||||
[FieldOffset(Offset = "0x84")]
|
||||
[Token(Token = "0x4002D4A")]
|
||||
private Vector3 targetPosition;
|
||||
|
||||
// Token: 0x04002D4B RID: 11595
|
||||
[FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x4002D4B")]
|
||||
private Quaternion targetRotation;
|
||||
|
||||
// Token: 0x04002D4C RID: 11596
|
||||
[FieldOffset(Offset = "0xA0")]
|
||||
[Token(Token = "0x4002D4C")]
|
||||
private bool initiated;
|
||||
|
||||
// Token: 0x04002D4D RID: 11597
|
||||
[FieldOffset(Offset = "0xA4")]
|
||||
[Token(Token = "0x4002D4D")]
|
||||
private float nextSwitchTime;
|
||||
|
||||
// Token: 0x04002D4E RID: 11598
|
||||
[FieldOffset(Offset = "0xA8")]
|
||||
[Token(Token = "0x4002D4E")]
|
||||
private float speedF;
|
||||
}
|
||||
}
|
||||
}
|
||||
52
Cpp2IL/Assembly-CSharp/RootMotion/Demos/TransferMotion.cs
Normal file
52
Cpp2IL/Assembly-CSharp/RootMotion/Demos/TransferMotion.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003D8 RID: 984
|
||||
[Token(Token = "0x20003D8")]
|
||||
public class TransferMotion : MonoBehaviour
|
||||
{
|
||||
// Token: 0x060023BB RID: 9147 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023BB")]
|
||||
[Address(RVA = "0x13033E0", Offset = "0x13021E0", VA = "0x1813033E0")]
|
||||
private void OnEnable()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023BC RID: 9148 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023BC")]
|
||||
[Address(RVA = "0x1303420", Offset = "0x1302220", VA = "0x181303420")]
|
||||
private void Update()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023BD RID: 9149 RVA: 0x00051A64 File Offset: 0x0004FC64
|
||||
[Token(Token = "0x60023BD")]
|
||||
[Address(RVA = "0x1303580", Offset = "0x1302380", VA = "0x181303580")]
|
||||
public TransferMotion()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002D4F RID: 11599
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002D4F")]
|
||||
[Tooltip("The Transform to transfer motion to.")]
|
||||
public Transform to;
|
||||
|
||||
// Token: 0x04002D50 RID: 11600
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002D50")]
|
||||
[Tooltip("The amount of motion to transfer.")]
|
||||
[Range(0f, 1f)]
|
||||
public float transferMotion = 0.9f;
|
||||
|
||||
// Token: 0x04002D51 RID: 11601
|
||||
[FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x4002D51")]
|
||||
private Vector3 lastPosition;
|
||||
}
|
||||
}
|
||||
77
Cpp2IL/Assembly-CSharp/RootMotion/Demos/Turret.cs
Normal file
77
Cpp2IL/Assembly-CSharp/RootMotion/Demos/Turret.cs
Normal file
@@ -0,0 +1,77 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003DF RID: 991
|
||||
[Token(Token = "0x20003DF")]
|
||||
public class Turret : MonoBehaviour
|
||||
{
|
||||
// Token: 0x060023D8 RID: 9176 RVA: 0x00051E3C File Offset: 0x0005003C
|
||||
[Token(Token = "0x60023D8")]
|
||||
[Address(RVA = "0x75A620", Offset = "0x759420", VA = "0x18075A620")]
|
||||
private void Update()
|
||||
{
|
||||
Turret.Part[] array = this.parts;
|
||||
int num = 0;
|
||||
int length = array.Length;
|
||||
if (num < length)
|
||||
{
|
||||
Turret.Part part = array[num];
|
||||
Transform transform = this.target;
|
||||
part.AimAt(transform);
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060023D9 RID: 9177 RVA: 0x00051E80 File Offset: 0x00050080
|
||||
[Token(Token = "0x60023D9")]
|
||||
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
|
||||
public Turret()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002D6C RID: 11628
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002D6C")]
|
||||
public Transform target;
|
||||
|
||||
// Token: 0x04002D6D RID: 11629
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002D6D")]
|
||||
public Turret.Part[] parts;
|
||||
|
||||
// Token: 0x020003E0 RID: 992
|
||||
[Token(Token = "0x20003E0")]
|
||||
[Serializable]
|
||||
public class Part
|
||||
{
|
||||
// Token: 0x060023DA RID: 9178 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023DA")]
|
||||
[Address(RVA = "0x69F7C0", Offset = "0x69E5C0", VA = "0x18069F7C0")]
|
||||
public void AimAt(Transform target)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023DB RID: 9179 RVA: 0x00051E94 File Offset: 0x00050094
|
||||
[Token(Token = "0x60023DB")]
|
||||
[Address(RVA = "0x3D8B20", Offset = "0x3D7920", VA = "0x1803D8B20")]
|
||||
public Part()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002D6E RID: 11630
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4002D6E")]
|
||||
public Transform transform;
|
||||
|
||||
// Token: 0x04002D6F RID: 11631
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002D6F")]
|
||||
private RotationLimit rotationLimit;
|
||||
}
|
||||
}
|
||||
}
|
||||
110
Cpp2IL/Assembly-CSharp/RootMotion/Demos/TwoHandedProp.cs
Normal file
110
Cpp2IL/Assembly-CSharp/RootMotion/Demos/TwoHandedProp.cs
Normal file
@@ -0,0 +1,110 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003D9 RID: 985
|
||||
[Token(Token = "0x20003D9")]
|
||||
public class TwoHandedProp : MonoBehaviour
|
||||
{
|
||||
// Token: 0x060023BE RID: 9150 RVA: 0x00051A84 File Offset: 0x0004FC84
|
||||
[Token(Token = "0x60023BE")]
|
||||
[Address(RVA = "0x75B400", Offset = "0x75A200", VA = "0x18075B400")]
|
||||
private void Start()
|
||||
{
|
||||
FullBodyBipedIK component = base.GetComponent<FullBodyBipedIK>();
|
||||
this.ik = component;
|
||||
IKSolverFullBodyBiped solver = this.ik.solver;
|
||||
IKSolver.UpdateDelegate updateDelegate = new IKSolver.UpdateDelegate(this.AfterFBBIK);
|
||||
Delegate @delegate = Delegate.Combine(updateDelegate, updateDelegate);
|
||||
int num = 0;
|
||||
if (@delegate == 0 || @delegate != 0)
|
||||
{
|
||||
solver.OnPostUpdate = num;
|
||||
this.ik.solver.leftHandEffector.positionWeight = 1f;
|
||||
this.ik.solver.rightHandEffector.positionWeight = 1f;
|
||||
Transform target = this.ik.solver.rightHandEffector.target;
|
||||
int num2 = 0;
|
||||
if (target == num2)
|
||||
{
|
||||
Debug.LogError("Right Hand Effector needs a Target in this demo.");
|
||||
}
|
||||
return;
|
||||
}
|
||||
throw new InvalidCastException();
|
||||
}
|
||||
|
||||
// Token: 0x060023BF RID: 9151 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023BF")]
|
||||
[Address(RVA = "0x75AFD0", Offset = "0x759DD0", VA = "0x18075AFD0")]
|
||||
private void LateUpdate()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023C0 RID: 9152 RVA: 0x00051B44 File Offset: 0x0004FD44
|
||||
[Token(Token = "0x60023C0")]
|
||||
[Address(RVA = "0x75AED0", Offset = "0x759CD0", VA = "0x18075AED0")]
|
||||
private void AfterFBBIK()
|
||||
{
|
||||
Transform bone = this.ik.solver.leftHandEffector.bone;
|
||||
Quaternion rotation = this.ik.solver.leftHandEffector.rotation;
|
||||
bone.rotation = rotation;
|
||||
Transform bone2 = this.ik.solver.rightHandEffector.bone;
|
||||
Quaternion rotation2 = this.ik.solver.rightHandEffector.rotation;
|
||||
bone2.rotation = rotation2;
|
||||
}
|
||||
|
||||
// Token: 0x060023C1 RID: 9153 RVA: 0x00051BC0 File Offset: 0x0004FDC0
|
||||
[Token(Token = "0x60023C1")]
|
||||
[Address(RVA = "0x75B2E0", Offset = "0x75A0E0", VA = "0x18075B2E0")]
|
||||
private void OnDestroy()
|
||||
{
|
||||
FullBodyBipedIK fullBodyBipedIK = this.ik;
|
||||
int num = 0;
|
||||
if (fullBodyBipedIK != num)
|
||||
{
|
||||
IKSolverFullBodyBiped solver = this.ik.solver;
|
||||
IKSolver.UpdateDelegate onPostUpdate = solver.OnPostUpdate;
|
||||
IKSolver.UpdateDelegate updateDelegate = new IKSolver.UpdateDelegate(this.AfterFBBIK);
|
||||
Delegate @delegate = Delegate.Remove(onPostUpdate, updateDelegate);
|
||||
int num2 = 0;
|
||||
if (@delegate != 0 && @delegate == 0)
|
||||
{
|
||||
throw new InvalidCastException();
|
||||
}
|
||||
solver.OnPostUpdate = num2;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060023C2 RID: 9154 RVA: 0x00051C2C File Offset: 0x0004FE2C
|
||||
[Token(Token = "0x60023C2")]
|
||||
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
|
||||
public TwoHandedProp()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002D52 RID: 11602
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002D52")]
|
||||
[Tooltip("The left hand target parented to the right hand.")]
|
||||
public Transform leftHandTarget;
|
||||
|
||||
// Token: 0x04002D53 RID: 11603
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002D53")]
|
||||
private FullBodyBipedIK ik;
|
||||
|
||||
// Token: 0x04002D54 RID: 11604
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002D54")]
|
||||
private Vector3 targetPosRelativeToRight;
|
||||
|
||||
// Token: 0x04002D55 RID: 11605
|
||||
[FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x4002D55")]
|
||||
private Quaternion targetRotRelativeToRight;
|
||||
}
|
||||
}
|
||||
43
Cpp2IL/Assembly-CSharp/RootMotion/Demos/UserControlAI.cs
Normal file
43
Cpp2IL/Assembly-CSharp/RootMotion/Demos/UserControlAI.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003EB RID: 1003
|
||||
[Token(Token = "0x20003EB")]
|
||||
public class UserControlAI : UserControlThirdPerson
|
||||
{
|
||||
// Token: 0x06002415 RID: 9237 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002415")]
|
||||
[Address(RVA = "0x8C3B60", Offset = "0x8C2960", VA = "0x1808C3B60", Slot = "4")]
|
||||
protected override void Update()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002416 RID: 9238 RVA: 0x00052298 File Offset: 0x00050498
|
||||
[Token(Token = "0x6002416")]
|
||||
[Address(RVA = "0x8C3D70", Offset = "0x8C2B70", VA = "0x1808C3D70")]
|
||||
public UserControlAI()
|
||||
{
|
||||
this.canCrouch = true;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04002DE0 RID: 11744
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002DE0")]
|
||||
public Transform moveTarget;
|
||||
|
||||
// Token: 0x04002DE1 RID: 11745
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4002DE1")]
|
||||
public float stoppingDistance = 0.5f;
|
||||
|
||||
// Token: 0x04002DE2 RID: 11746
|
||||
[FieldOffset(Offset = "0x54")]
|
||||
[Token(Token = "0x4002DE2")]
|
||||
public float stoppingThreshold = 1.5f;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003DA RID: 986
|
||||
[Token(Token = "0x20003DA")]
|
||||
public class UserControlInteractions : UserControlThirdPerson
|
||||
{
|
||||
// Token: 0x060023C3 RID: 9155 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023C3")]
|
||||
[Address(RVA = "0x8C3EF0", Offset = "0x8C2CF0", VA = "0x1808C3EF0", Slot = "4")]
|
||||
protected override void Update()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023C4 RID: 9156 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023C4")]
|
||||
[Address(RVA = "0x8C3D90", Offset = "0x8C2B90", VA = "0x1808C3D90")]
|
||||
private void OnGUI()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023C5 RID: 9157 RVA: 0x00051C40 File Offset: 0x0004FE40
|
||||
[Token(Token = "0x60023C5")]
|
||||
[Address(RVA = "0x8C3FE0", Offset = "0x8C2DE0", VA = "0x1808C3FE0")]
|
||||
public UserControlInteractions()
|
||||
{
|
||||
this.canCrouch = true;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04002D56 RID: 11606
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002D56")]
|
||||
[SerializeField]
|
||||
private CharacterThirdPerson character;
|
||||
|
||||
// Token: 0x04002D57 RID: 11607
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4002D57")]
|
||||
[SerializeField]
|
||||
private InteractionSystem interactionSystem;
|
||||
|
||||
// Token: 0x04002D58 RID: 11608
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4002D58")]
|
||||
[SerializeField]
|
||||
private bool disableInputInInteraction = true;
|
||||
|
||||
// Token: 0x04002D59 RID: 11609
|
||||
[FieldOffset(Offset = "0x5C")]
|
||||
[Token(Token = "0x4002D59")]
|
||||
public float enableInputAtProgress = 0.8f;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003EC RID: 1004
|
||||
[Token(Token = "0x20003EC")]
|
||||
public class UserControlThirdPerson : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002417 RID: 9239 RVA: 0x000522C8 File Offset: 0x000504C8
|
||||
[Token(Token = "0x6002417")]
|
||||
[Address(RVA = "0x8C4000", Offset = "0x8C2E00", VA = "0x1808C4000")]
|
||||
private void Start()
|
||||
{
|
||||
Transform transform = Camera.main.transform;
|
||||
this.cam = transform;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06002418 RID: 9240 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002418")]
|
||||
[Address(RVA = "0x8C4040", Offset = "0x8C2E40", VA = "0x1808C4040", Slot = "4")]
|
||||
protected virtual void Update()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002419 RID: 9241 RVA: 0x000522F0 File Offset: 0x000504F0
|
||||
[Token(Token = "0x6002419")]
|
||||
[Address(RVA = "0x8C4370", Offset = "0x8C3170", VA = "0x1808C4370")]
|
||||
public UserControlThirdPerson()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002DE3 RID: 11747
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002DE3")]
|
||||
public bool walkByDefault;
|
||||
|
||||
// Token: 0x04002DE4 RID: 11748
|
||||
[FieldOffset(Offset = "0x19")]
|
||||
[Token(Token = "0x4002DE4")]
|
||||
public bool canCrouch = true;
|
||||
|
||||
// Token: 0x04002DE5 RID: 11749
|
||||
[FieldOffset(Offset = "0x1A")]
|
||||
[Token(Token = "0x4002DE5")]
|
||||
public bool canJump;
|
||||
|
||||
// Token: 0x04002DE6 RID: 11750
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4002DE6")]
|
||||
public UserControlThirdPerson.State state;
|
||||
|
||||
// Token: 0x04002DE7 RID: 11751
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002DE7")]
|
||||
protected Transform cam;
|
||||
|
||||
// Token: 0x020003ED RID: 1005
|
||||
[Token(Token = "0x20003ED")]
|
||||
public struct State
|
||||
{
|
||||
// Token: 0x04002DE8 RID: 11752
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4002DE8")]
|
||||
public Vector3 move;
|
||||
|
||||
// Token: 0x04002DE9 RID: 11753
|
||||
[FieldOffset(Offset = "0xC")]
|
||||
[Token(Token = "0x4002DE9")]
|
||||
public Vector3 lookPos;
|
||||
|
||||
// Token: 0x04002DEA RID: 11754
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002DEA")]
|
||||
public bool crouch;
|
||||
|
||||
// Token: 0x04002DEB RID: 11755
|
||||
[FieldOffset(Offset = "0x19")]
|
||||
[Token(Token = "0x4002DEB")]
|
||||
public bool jump;
|
||||
|
||||
// Token: 0x04002DEC RID: 11756
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4002DEC")]
|
||||
public int actionIndex;
|
||||
}
|
||||
}
|
||||
}
|
||||
51
Cpp2IL/Assembly-CSharp/RootMotion/Demos/VRIKPlatform.cs
Normal file
51
Cpp2IL/Assembly-CSharp/RootMotion/Demos/VRIKPlatform.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RootMotion.Demos
|
||||
{
|
||||
// Token: 0x020003E1 RID: 993
|
||||
[Token(Token = "0x20003E1")]
|
||||
public class VRIKPlatform : MonoBehaviour
|
||||
{
|
||||
// Token: 0x060023DC RID: 9180 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023DC")]
|
||||
[Address(RVA = "0x8C5480", Offset = "0x8C4280", VA = "0x1808C5480")]
|
||||
private void Start()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023DD RID: 9181 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023DD")]
|
||||
[Address(RVA = "0x8C54F0", Offset = "0x8C42F0", VA = "0x1808C54F0")]
|
||||
private void Update()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060023DE RID: 9182 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x60023DE")]
|
||||
[Address(RVA = "0x8C56E0", Offset = "0x8C44E0", VA = "0x1808C56E0")]
|
||||
public VRIKPlatform()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x04002D70 RID: 11632
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002D70")]
|
||||
public VRIK ik;
|
||||
|
||||
// Token: 0x04002D71 RID: 11633
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002D71")]
|
||||
private Vector3 lastPosition;
|
||||
|
||||
// Token: 0x04002D72 RID: 11634
|
||||
[FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x4002D72")]
|
||||
private Quaternion lastRotation;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user