From 134f1deb971b0514a26e04e23926f91983a5497f Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Wed, 13 Mar 2024 11:38:18 +0800 Subject: * move --- _ActiveRagdoll/Strength.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 _ActiveRagdoll/Strength.cs (limited to '_ActiveRagdoll/Strength.cs') diff --git a/_ActiveRagdoll/Strength.cs b/_ActiveRagdoll/Strength.cs new file mode 100644 index 0000000..f458b21 --- /dev/null +++ b/_ActiveRagdoll/Strength.cs @@ -0,0 +1,21 @@ +using UnityEngine; + +public class Strength : MonoBehaviour +{ + public float strength = 1f; + + private PlayerDeath death; + + private RagdollHandler ragdoll; + + private void Start() + { + ragdoll = GetComponent(); + death = GetComponent(); + } + + private void Update() + { + strength = ragdoll.ragdollValue * death.muscleFunction; + } +} -- cgit v1.1-26-g67d0