From e846c64d6f927879cb8a095e62d773a8d7b3c9f4 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 15 Oct 2020 07:24:10 +0800 Subject: *ability system --- Assets/Scripts/Input/Command.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Assets/Scripts/Input/Command.cs') diff --git a/Assets/Scripts/Input/Command.cs b/Assets/Scripts/Input/Command.cs index 5ac2c2a0..7649af58 100644 --- a/Assets/Scripts/Input/Command.cs +++ b/Assets/Scripts/Input/Command.cs @@ -24,11 +24,13 @@ public struct Command { public CommandCode code; // 指令码 public float time; // 触发时间 + public int id; public Command(CommandCode code, float time) { this.code = code; this.time = time; + this.id = UIDManager.Acquire(); } } -- cgit v1.1-26-g67d0