【Bug】修改

iOS_release
zhangaotian 2024-07-19 15:27:04 +08:00
parent f43a757282
commit 1596bcf21f
2 changed files with 16 additions and 2 deletions

View File

@ -145,8 +145,10 @@ public class GameBuildWindow : OdinEditorWindow
curBuildData.NodeInfos = new List<BuildData.BuildNode>(curBuildData.nodeCount);
for (int i = 0; i < curBuildData.nodeCount; i++)
{
var node = new BuildData.BuildNode();
node.Name = string.Format(NodeName, i + 1);
var node = new BuildData.BuildNode
{
Name = string.Format(NodeName, i + 1)
};
curBuildData.NodeInfos.Add(node);
}

View File

@ -3,6 +3,7 @@ using PhxhSDK;
using System.IO;
using UnityEngine;
using System.Linq;
using LC.Newtonsoft.Json;
using Framework.GameBuild;
using Sirenix.OdinInspector;
using Cysharp.Threading.Tasks;
@ -57,6 +58,17 @@ namespace Framework.Manager
[HideInInspector] public List<string> Options;
[HideInInspector] public string IconPath;
[JsonConstructor]
public BuildNode(string name)
{
this.Name = name;
}
[JsonConstructor]
public BuildNode()
{
}
}
}