From c9fc4fbbe205ff69fa20ded822b2214847b59726 Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Mon, 18 Mar 2024 10:03:48 +0800 Subject: *misc --- _ActiveRagdoll/SetAnimationByInput.cs | 40 ----------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 _ActiveRagdoll/SetAnimationByInput.cs (limited to '_ActiveRagdoll/SetAnimationByInput.cs') diff --git a/_ActiveRagdoll/SetAnimationByInput.cs b/_ActiveRagdoll/SetAnimationByInput.cs deleted file mode 100644 index cc50e5a..0000000 --- a/_ActiveRagdoll/SetAnimationByInput.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine; - -public class SetAnimationByInput : MonoBehaviour -{ - private InputHandler input; - - private AnimationHandler anim; - - private StandingDataHandler standingData; - - private void Start() - { - anim = GetComponent(); - input = GetComponent(); - standingData = GetComponent(); - } - - private void Update() - { - if ((double)standingData.sinceGrounded > 0.2) - { - anim.animationState = 3; - } - else if (input.inputMovementDirection.magnitude > 0.1f) - { - if (input.isSpringting) - { - anim.animationState = 1; - } - else - { - anim.animationState = 2; - } - } - else - { - anim.animationState = 0; - } - } -} -- cgit v1.1-26-g67d0