summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Input/Command.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2022-03-10 14:07:40 +0800
committerchai <chaifix@163.com>2022-03-10 14:07:40 +0800
commit22891bf59032ba88262824255a706d652031384b (patch)
tree7595439ba9966c9402d37e37cee5e8cf098757d5 /Assets/Scripts/Input/Command.cs
parent8b04ea73e540067f83870b61d89db4868fea5e8a (diff)
* move folder
Diffstat (limited to 'Assets/Scripts/Input/Command.cs')
-rw-r--r--Assets/Scripts/Input/Command.cs38
1 files changed, 0 insertions, 38 deletions
diff --git a/Assets/Scripts/Input/Command.cs b/Assets/Scripts/Input/Command.cs
deleted file mode 100644
index 7ef6c9eb..00000000
--- a/Assets/Scripts/Input/Command.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-
-public enum GamepadButton
-{
- Blank,
-
- // 方向键
- Left,
- Right,
- Up,
- Down,
-
- // 操作键
- Triangle, // △
- Cross, // ×
- Square, // □
- Circle, // ○
-}
-
-public struct Command
-{
- public GamepadButton code; // 指令码
- public float time; // 触发时间
- public int id;
-
- public static Command Blank = new Command(GamepadButton.Blank, 0);
-
- public Command(GamepadButton code, float time)
- {
- this.code = code;
- this.time = time;
- this.id = UIDManager.Acquire();
- }
-}
-