修复BUG

This commit is contained in:
MuHua-123
2025-01-17 12:13:18 +08:00
parent 98187f2ced
commit 7f4071505d
9 changed files with 32 additions and 66 deletions
+11
View File
@@ -8,3 +8,14 @@ using UnityEngine;
public class ModuleCore : Module<ModuleCore> {
}
/// <summary>
/// 模块基类
/// </summary>
/// <typeparam name="ModuleCore"></typeparam>
public class Module<ModuleCore> where ModuleCore : Module<ModuleCore>, new() {
/// <summary> 模块单例 </summary>
public static ModuleCore I => Instantiate();
private static ModuleCore core;
private static ModuleCore Instantiate() => core == null ? core = new ModuleCore() : core;
}