summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Input/Command.cs
diff options
context:
space:
mode:
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;
+ }
+}
+