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