From fee35151213939d61d2dbd9d6a0ba71ac93b91cf Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 17 Oct 2020 15:39:34 +0800 Subject: =?UTF-8?q?+=20=E8=BF=9E=E5=87=BB=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Input/Command.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Assets/Scripts/Input/Command.cs') 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; -- cgit v1.1-26-g67d0