summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Utils
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Utils')
-rw-r--r--Assets/Scripts/Utils/UIDManager.cs18
-rw-r--r--Assets/Scripts/Utils/UIDManager.cs.meta11
2 files changed, 29 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;
+ }
+
+}
diff --git a/Assets/Scripts/Utils/UIDManager.cs.meta b/Assets/Scripts/Utils/UIDManager.cs.meta
new file mode 100644
index 00000000..4a2a8ee0
--- /dev/null
+++ b/Assets/Scripts/Utils/UIDManager.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 67355920ae292904288feb5dc3f089bc
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant: