diff options
author | chai <chaifix@163.com> | 2020-10-13 17:20:14 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-10-13 17:20:14 +0800 |
commit | 71c03c717b189ee0ff0e62d219f02b8ab336c40a (patch) | |
tree | 395ce6c55f1876ca6451c706e38a95d0bcbf70a6 /Assets/Scripts/Input | |
parent | fc6de82e75310b4c007d80753a5f58e6692f4855 (diff) |
+ability system
Diffstat (limited to 'Assets/Scripts/Input')
-rw-r--r-- | Assets/Scripts/Input/CommandType.cs | 21 | ||||
-rw-r--r-- | Assets/Scripts/Input/CommandType.cs.meta | 11 | ||||
-rw-r--r-- | Assets/Scripts/Input/InputManager.cs | 18 | ||||
-rw-r--r-- | Assets/Scripts/Input/InputManager.cs.meta | 11 |
4 files changed, 61 insertions, 0 deletions
diff --git a/Assets/Scripts/Input/CommandType.cs b/Assets/Scripts/Input/CommandType.cs new file mode 100644 index 00000000..3c537383 --- /dev/null +++ b/Assets/Scripts/Input/CommandType.cs @@ -0,0 +1,21 @@ +using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+
+public enum Command
+{
+ // 方向键
+ Left,
+ Right,
+ Top,
+ Bottom,
+
+ // 操作键
+ Triangle, // △
+ Cross, // ×
+ Square, // □
+ Circle, // ○
+}
+
+
diff --git a/Assets/Scripts/Input/CommandType.cs.meta b/Assets/Scripts/Input/CommandType.cs.meta new file mode 100644 index 00000000..f2802802 --- /dev/null +++ b/Assets/Scripts/Input/CommandType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e105d6d96dd08e8499e6a4254d289e99 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Input/InputManager.cs b/Assets/Scripts/Input/InputManager.cs new file mode 100644 index 00000000..098190bc --- /dev/null +++ b/Assets/Scripts/Input/InputManager.cs @@ -0,0 +1,18 @@ +using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class InputManager : MonoBehaviour
+{
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}
diff --git a/Assets/Scripts/Input/InputManager.cs.meta b/Assets/Scripts/Input/InputManager.cs.meta new file mode 100644 index 00000000..234b6d17 --- /dev/null +++ b/Assets/Scripts/Input/InputManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 26195ae7cb9459e498256c387da7273e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: |