diff options
author | chai <chaifix@163.com> | 2020-10-17 15:39:34 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-10-17 15:39:34 +0800 |
commit | fee35151213939d61d2dbd9d6a0ba71ac93b91cf (patch) | |
tree | 3aa986e27f36e47242b9a12b7e7b6a8d5d8c0fc8 /Assets/Scripts/Input/Command.cs | |
parent | f99c4d56cf95c563e95d3965ffd6d8ba33b660ee (diff) |
+ 连击测试
Diffstat (limited to 'Assets/Scripts/Input/Command.cs')
-rw-r--r-- | Assets/Scripts/Input/Command.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Assets/Scripts/Input/Command.cs b/Assets/Scripts/Input/Command.cs index fae88684..7ef6c9eb 100644 --- a/Assets/Scripts/Input/Command.cs +++ b/Assets/Scripts/Input/Command.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using UnityEngine; -public enum CommandCode +public enum GamepadButton { Blank, @@ -22,13 +22,13 @@ public enum CommandCode public struct Command { - public CommandCode code; // 指令码 + public GamepadButton code; // 指令码 public float time; // 触发时间 public int id; - public static Command Blank = new Command(CommandCode.Blank, 0); + public static Command Blank = new Command(GamepadButton.Blank, 0); - public Command(CommandCode code, float time) + public Command(GamepadButton code, float time) { this.code = code; this.time = time; |