summaryrefslogtreecommitdiff
path: root/ActiveRagdoll/Assets/TABG/Scripts/Input/InputHandler.cs
diff options
context:
space:
mode:
authorchai <215380520@qq.com>2024-04-16 23:31:39 +0800
committerchai <215380520@qq.com>2024-04-16 23:31:39 +0800
commit7af1acc694a14570a86b9dc432f3766e0ff9bbe2 (patch)
treebefb97aae010b9e03dfd0d91e2d015f30f8b1724 /ActiveRagdoll/Assets/TABG/Scripts/Input/InputHandler.cs
parent150e1e98d1c6866e0d1fa2abf042f71cc766ed8e (diff)
*misc
Diffstat (limited to 'ActiveRagdoll/Assets/TABG/Scripts/Input/InputHandler.cs')
-rw-r--r--ActiveRagdoll/Assets/TABG/Scripts/Input/InputHandler.cs8
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();
+ }
}
}