summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Input/Command.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-10-15 05:41:48 +0800
committerchai <chaifix@163.com>2020-10-15 05:41:48 +0800
commitb1b14c45ce95dcf7b81867d68d6006345d98959e (patch)
tree50f9fb13aea169c1db0213c2c068d19771f4aab5 /Assets/Scripts/Input/Command.cs
parent0d221e6c05d59d812d494f05b9916d85650032eb (diff)
*input system
Diffstat (limited to 'Assets/Scripts/Input/Command.cs')
-rw-r--r--Assets/Scripts/Input/Command.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/Assets/Scripts/Input/Command.cs b/Assets/Scripts/Input/Command.cs
new file mode 100644
index 00000000..5ac2c2a0
--- /dev/null
+++ b/Assets/Scripts/Input/Command.cs
@@ -0,0 +1,34 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+
+public enum CommandCode
+{
+ Blank,
+
+ // 方向键
+ Left,
+ Right,
+ Up,
+ Down,
+
+ // 操作键
+ Triangle, // △
+ Cross, // ×
+ Square, // □
+ Circle, // ○
+}
+
+public struct Command
+{
+ public CommandCode code; // 指令码
+ public float time; // 触发时间
+
+ public Command(CommandCode code, float time)
+ {
+ this.code = code;
+ this.time = time;
+ }
+}
+