summaryrefslogtreecommitdiff
path: root/_ActiveRagdoll/Handlers/RagdollHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to '_ActiveRagdoll/Handlers/RagdollHandler.cs')
-rw-r--r--_ActiveRagdoll/Handlers/RagdollHandler.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/_ActiveRagdoll/Handlers/RagdollHandler.cs b/_ActiveRagdoll/Handlers/RagdollHandler.cs
new file mode 100644
index 0000000..29daa68
--- /dev/null
+++ b/_ActiveRagdoll/Handlers/RagdollHandler.cs
@@ -0,0 +1,21 @@
+using UnityEngine;
+
+public class RagdollHandler : MonoBehaviour
+{
+ public float ragdollValue = 1f;//1
+
+ private RigidbodyHolder rigs;//14
+
+ private void Start()
+ {
+ rigs = GetComponent<RigidbodyHolder>();
+ }
+
+ private void Update()
+ {
+ for (int i = 0; i < rigs.GetAllRigs().Length; i++)
+ {
+ rigs.GetAllRigs()[i].GetComponent<DragHandler>().dragAmount = ragdollValue;
+ }
+ }
+}