summaryrefslogtreecommitdiff
path: root/_ActiveRagdoll/RigidbodyHolder.cs
diff options
context:
space:
mode:
Diffstat (limited to '_ActiveRagdoll/RigidbodyHolder.cs')
-rw-r--r--_ActiveRagdoll/RigidbodyHolder.cs44
1 files changed, 0 insertions, 44 deletions
diff --git a/_ActiveRagdoll/RigidbodyHolder.cs b/_ActiveRagdoll/RigidbodyHolder.cs
deleted file mode 100644
index 796f77a..0000000
--- a/_ActiveRagdoll/RigidbodyHolder.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-using System.Collections.Generic;
-using UnityEngine;
-
-public class RigidbodyHolder : MonoBehaviour
-{
- private Rigidbody[] allRigs;
-
- private WeaponHandler weapons;
-
- private void Start()
- {
- allRigs = GetComponentsInChildren<Rigidbody>();
- weapons = GetComponent<WeaponHandler>();
- }
-
- private void Update()
- {
- }
-
- public Rigidbody[] GetAllRigs()
- {
- if (!weapons.leftGun && !weapons.rightGun)
- {
- return allRigs;
- }
- List<Rigidbody> list = new List<Rigidbody>();
- for (int i = 0; i < allRigs.Length; i++)
- {
- list.Add(allRigs[i]);
- }
- if ((bool)weapons)
- {
- if ((bool)weapons.leftGun)
- {
- list.Add(weapons.leftGun.rig);
- }
- if ((bool)weapons.rightGun)
- {
- list.Add(weapons.rightGun.rig);
- }
- }
- return list.ToArray();
- }
-}