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.cs8
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;