浏览代码

【优化】解决db管理器组件挂载报错

johnclot69 2 年之前
父节点
当前提交
421896f682
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      DotNet/Model/Module/DB/DBManagerComponent.cs

+ 3 - 3
DotNet/Model/Module/DB/DBManagerComponent.cs

@@ -1,11 +1,11 @@
 namespace ET.Server
 {
-    
+    [ComponentOf(typeof(Scene))]
     public class DBManagerComponent: Entity, IAwake, IDestroy
     {
         [StaticField]
         public static DBManagerComponent Instance;
-        
+
         public DBComponent[] DBComponents = new DBComponent[IdGenerater.MaxZone];
     }
-}
+}