diff options
Diffstat (limited to 'ActiveRagdoll/Assets/TABG/Scripts/Input/InputHandler.cs')
-rw-r--r-- | ActiveRagdoll/Assets/TABG/Scripts/Input/InputHandler.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ActiveRagdoll/Assets/TABG/Scripts/Input/InputHandler.cs b/ActiveRagdoll/Assets/TABG/Scripts/Input/InputHandler.cs index f5e5ea2..da174de 100644 --- a/ActiveRagdoll/Assets/TABG/Scripts/Input/InputHandler.cs +++ b/ActiveRagdoll/Assets/TABG/Scripts/Input/InputHandler.cs @@ -1,3 +1,4 @@ +using Rigging.Action; using Rigging.Cameras; using Rigging.Data; using System; @@ -19,11 +20,14 @@ namespace Rigging.Inputs private MovementDataHandler movementData; + private Movement movement; + public bool isSpringting = false; private void Start() { movementData = GetComponentInChildren<MovementDataHandler>(); + movement = GetComponentInChildren<Movement>(); } private void Update() @@ -53,6 +57,10 @@ namespace Rigging.Inputs { lastInputDirection = inputMovementDirection; } + if ((bool)movement && Input.GetKeyDown(KeyCode.Space)) + { + movement.Jump(); + } } } |