diff options
author | chai <215380520@qq.com> | 2024-04-15 21:05:01 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2024-04-15 21:05:01 +0800 |
commit | 0464810f2f83c86560c3422d664380d474cb3e56 (patch) | |
tree | 3548bec2d39f6e2a9803dd02dd2f636922ea07c7 /ActiveRagdoll/Assets/TABG/Scripts/Player.cs | |
parent | f34c222b242c6fd01ed209ff827c614621160048 (diff) |
*misc
Diffstat (limited to 'ActiveRagdoll/Assets/TABG/Scripts/Player.cs')
-rw-r--r-- | ActiveRagdoll/Assets/TABG/Scripts/Player.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ActiveRagdoll/Assets/TABG/Scripts/Player.cs b/ActiveRagdoll/Assets/TABG/Scripts/Player.cs index b2168df..e07da7f 100644 --- a/ActiveRagdoll/Assets/TABG/Scripts/Player.cs +++ b/ActiveRagdoll/Assets/TABG/Scripts/Player.cs @@ -6,6 +6,7 @@ using Rigging.Action; using Rigging.Camera; using System; using Rigging.BodyPart; +using Rigging.Inputs; namespace Rigging { @@ -25,8 +26,6 @@ namespace Rigging public Strength strength; - public InputHandler input; - public AnimationHandler animation; } @@ -71,6 +70,8 @@ namespace Rigging public BodyParts body; + public Rigging.Inputs.InputHandler input; + private void Awake() { status = new Status(); @@ -80,7 +81,6 @@ namespace Rigging status.body = GetComponentInChildren<RigidbodyHolder>(); status.step = GetComponentInChildren<StepHandler>(); status.strength = GetComponentInChildren<Strength>(); - status.input = GetComponentInChildren<InputHandler>(); status.animation = GetComponentInChildren<AnimationHandler>(); actions = new Actions(); @@ -105,6 +105,8 @@ namespace Rigging body.legRight = GetComponentInChildren<Rigging.BodyPart.LegRight>(); body.torso = GetComponentInChildren<Rigging.BodyPart.Torso>(); + input = GetComponent<Rigging.Inputs.InputHandler>(); + } } |