From bbef85004f65ec545b37b7b996123d6f55452f64 Mon Sep 17 00:00:00 2001 From: shenjianxing <”315615051@qq.com“> Date: Thu, 19 Dec 2024 11:01:50 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9EPreLoad=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Xml/XmlParser.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/Xml/XmlParser.cs b/Assets/Scripts/Xml/XmlParser.cs index a2a85692..1e664b5e 100644 --- a/Assets/Scripts/Xml/XmlParser.cs +++ b/Assets/Scripts/Xml/XmlParser.cs @@ -141,12 +141,16 @@ namespace XMLTool // Ԥض var preLoadElement = appDataElement.Element("PreLoad"); - foreach (XElement actionElement in preLoadElement.Elements("Action")) + if (preLoadElement!=null) { - var action = ParseAction(actionElement); - appData.preLoad.action = action; + foreach (XElement actionElement in preLoadElement.Elements("Action")) + { + var action = ParseAction(actionElement); + appData.preLoad.action = action; + } } + // ģ LoadModules(appDataElement, appData); From ca9f64276d525c6d60917653b8aae1bfb37bd289 Mon Sep 17 00:00:00 2001 From: shenjianxing <”315615051@qq.com“> Date: Thu, 19 Dec 2024 11:05:02 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=A2=84=E5=8A=A0=E8=BD=BD=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=A4=BA=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Doc/Xml配置文档.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Doc/Xml配置文档.xml b/Doc/Xml配置文档.xml index 0021a891..cef7b692 100644 --- a/Doc/Xml配置文档.xml +++ b/Doc/Xml配置文档.xml @@ -74,6 +74,17 @@ + + + + + + + + + + + Scene