summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Utils/UIDManager.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-10-13 17:20:14 +0800
committerchai <chaifix@163.com>2020-10-13 17:20:14 +0800
commit71c03c717b189ee0ff0e62d219f02b8ab336c40a (patch)
tree395ce6c55f1876ca6451c706e38a95d0bcbf70a6 /Assets/Scripts/Utils/UIDManager.cs
parentfc6de82e75310b4c007d80753a5f58e6692f4855 (diff)
+ability system
Diffstat (limited to 'Assets/Scripts/Utils/UIDManager.cs')
-rw-r--r--Assets/Scripts/Utils/UIDManager.cs18
1 files changed, 18 insertions, 0 deletions
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;
+
+ /// <summary>
+ /// 拿一个id
+ /// </summary>
+ /// <returns></returns>
+ public static int Acquire()
+ {
+ return ++id;
+ }
+
+}