mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交demo
This commit is contained in:
@@ -78,7 +78,6 @@ namespace Game.JNGState.Logic.Data
|
||||
if (bytes.Length == 0) return;
|
||||
var value = JsonConvert.DeserializeObject<EDNodeValue>(Encoding.UTF8.GetString(bytes));
|
||||
if (value.Position is not null) Value.Position = value.Position;
|
||||
|
||||
}
|
||||
}
|
||||
public class EDNodeDataSystem : DStateDataSystem<EDNodeData,EDNode>
|
||||
@@ -97,6 +96,11 @@ namespace Game.JNGState.Logic.Data
|
||||
var nodes = new Dictionary<long, EDNodeData>();
|
||||
NodeContext.GetEntities().ForEach(child =>
|
||||
{
|
||||
if (nodes.ContainsKey(child.Id))
|
||||
{
|
||||
Debug.Log($"[EDNodeDataSystem] 出错 发现重复Key");
|
||||
return;
|
||||
}
|
||||
nodes.Add(child.Id,new EDNodeData(child));
|
||||
});
|
||||
return nodes;
|
||||
|
Reference in New Issue
Block a user