Explorar el Código

完美实现Entity的Component跟Children过滤序列化

tanghai hace 1 año
padre
commit
9aba301584
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      Unity/Assets/Scripts/Core/Entity/Entity.cs

+ 2 - 2
Unity/Assets/Scripts/Core/Entity/Entity.cs

@@ -381,7 +381,7 @@ namespace ET
         [BsonElement]
         [BsonIgnoreIfNull]
         [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
-        private SortedDictionary<long, Entity> children;
+        protected SortedDictionary<long, Entity> children;
 
         [MemoryPackIgnore]
         [BsonIgnore]
@@ -418,7 +418,7 @@ namespace ET
         [BsonElement]
         [BsonIgnoreIfNull]
         [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
-        private SortedDictionary<long, Entity> components;
+        protected SortedDictionary<long, Entity> components;
 
         [MemoryPackIgnore]
         [BsonIgnore]