|
@@ -34,7 +34,7 @@ public class Data
|
|
|
{
|
|
|
int version = 0;
|
|
|
int nativeVersion = 0;
|
|
|
- XmlNode temoNode;
|
|
|
+ XmlNode tempNode;
|
|
|
XmlDocument tempDoc1;
|
|
|
XmlDocument tempDoc2;
|
|
|
|
|
@@ -72,7 +72,6 @@ public class Data
|
|
|
|
|
|
Auxiliary.DecryptXml(tempDoc1);
|
|
|
|
|
|
-
|
|
|
sr.Close();
|
|
|
|
|
|
TextAsset textAsset = ManaReso.Load<TextAsset>("PlayerConfig", Folder.Config);
|
|
@@ -82,9 +81,9 @@ public class Data
|
|
|
|
|
|
version = int.Parse(tempDoc2.SelectSingleNode("PlayerConfig").SelectSingleNode("Version").Attributes[0].Value);
|
|
|
|
|
|
- temoNode = tempDoc1.SelectSingleNode("PlayerConfig").SelectSingleNode("Version");
|
|
|
+ tempNode = tempDoc1.SelectSingleNode("PlayerConfig").SelectSingleNode("Version");
|
|
|
|
|
|
- if (temoNode == null)
|
|
|
+ if (tempNode == null)
|
|
|
{
|
|
|
StreamWriter sw = new StreamWriter(Application.persistentDataPath + "/PlayerConfig.xml");
|
|
|
|
|
@@ -96,7 +95,7 @@ public class Data
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- nativeVersion = int.Parse(temoNode.Attributes[0].Value);
|
|
|
+ nativeVersion = int.Parse(tempNode.Attributes[0].Value);
|
|
|
|
|
|
if (nativeVersion != version)
|
|
|
{
|
|
@@ -144,7 +143,7 @@ public class Data
|
|
|
if (Initializer.LoadComplete)
|
|
|
{
|
|
|
Auxiliary.EncryptXml(PlayerDoc);
|
|
|
-
|
|
|
+
|
|
|
StreamWriter sw = new StreamWriter(Application.persistentDataPath + "/PlayerConfig.xml");
|
|
|
|
|
|
sw.Write(PlayerDoc.OuterXml);
|