Browse Source

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

johnclot69 2 years ago
parent
commit
421896f682
1 changed files with 3 additions and 3 deletions
  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];
     }
-}
+}