diff options
author | chai <chaifix@163.com> | 2020-10-13 17:20:14 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-10-13 17:20:14 +0800 |
commit | 71c03c717b189ee0ff0e62d219f02b8ab336c40a (patch) | |
tree | 395ce6c55f1876ca6451c706e38a95d0bcbf70a6 /Assets/Scripts/Utils/UIDManager.cs | |
parent | fc6de82e75310b4c007d80753a5f58e6692f4855 (diff) |
+ability system
Diffstat (limited to 'Assets/Scripts/Utils/UIDManager.cs')
-rw-r--r-- | Assets/Scripts/Utils/UIDManager.cs | 18 |
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;
+ }
+
+}
|