summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Test 1/TestInput.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Test 1/TestInput.cs')
-rw-r--r--Assets/Scripts/Test 1/TestInput.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/Assets/Scripts/Test 1/TestInput.cs b/Assets/Scripts/Test 1/TestInput.cs
new file mode 100644
index 00000000..ed526f0d
--- /dev/null
+++ b/Assets/Scripts/Test 1/TestInput.cs
@@ -0,0 +1,28 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class TestInput : MonoBehaviour
+{
+
+ private void Update()
+ {
+ if(Input.GetKeyDown("j"))
+ {
+ InputManager.Instance.OnAttack();
+ }
+ if(Input.GetKeyDown("space"))
+ {
+ InputManager.Instance.OnJump();
+ }
+ if(Input.GetKeyDown("d"))
+ {
+ InputManager.Instance.OnMoveRight();
+ }
+ if(Input.GetKeyDown("a"))
+ {
+ InputManager.Instance.OnMoveLeft();
+ }
+ }
+
+}