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:
commit
4941b676a3
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user