Pull request #27: fix ragdoll spacebar

Merge in CEGJ/32bit_jam_conjure from GameLogic to Dev

* commit '3d24df4fb2ae7329b45bc3750518b440fe0c00e5':
  fix ragdoll spacebar
This commit is contained in:
Soulaha 2022-10-30 19:46:40 +00:00
commit 4941b676a3

View File

@ -43,23 +43,6 @@ public class Ragdoll : MonoBehaviour
}
// Update is called once per frame
private void Update()
{
if(Input.GetKeyDown(KeyCode.Space))
{
if (_isRagdoll)
{
DisableRagdoll();
}
else
{
EnableRagdoll();
}
}
}
private void EnableRagdoll()
{
_ragdollRigidbodies.ForEach(rigidbody => rigidbody.isKinematic = false);