From 6ce8b9e22fc13be34b442c7b6af48b42cd44275a Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Wed, 13 Mar 2024 11:00:58 +0800 Subject: +init --- Strength.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Strength.cs (limited to 'Strength.cs') diff --git a/Strength.cs b/Strength.cs new file mode 100644 index 0000000..f458b21 --- /dev/null +++ b/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