diff options
Diffstat (limited to '_ActiveRagdoll/Strength.cs')
-rw-r--r-- | _ActiveRagdoll/Strength.cs | 21 |
1 files changed, 21 insertions, 0 deletions
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<RagdollHandler>(); + death = GetComponent<PlayerDeath>(); + } + + private void Update() + { + strength = ragdoll.ragdollValue * death.muscleFunction; + } +} |