From 71c03c717b189ee0ff0e62d219f02b8ab336c40a Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 13 Oct 2020 17:20:14 +0800 Subject: +ability system --- Assets/Scripts/Utils/UIDManager.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Assets/Scripts/Utils/UIDManager.cs (limited to 'Assets/Scripts/Utils/UIDManager.cs') diff --git a/Assets/Scripts/Utils/UIDManager.cs b/Assets/Scripts/Utils/UIDManager.cs new file mode 100644 index 00000000..3283de4e --- /dev/null +++ b/Assets/Scripts/Utils/UIDManager.cs @@ -0,0 +1,18 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class UIDManager +{ + static int id = 0; + + /// + /// 拿一个id + /// + /// + public static int Acquire() + { + return ++id; + } + +} -- cgit v1.1-26-g67d0