summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Utils/UIDManager.cs
diff options
context:
space:
mode:
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;
+ }
+
+}