【Bug】修改
parent
f43a757282
commit
1596bcf21f
|
@ -145,8 +145,10 @@ public class GameBuildWindow : OdinEditorWindow
|
||||||
curBuildData.NodeInfos = new List<BuildData.BuildNode>(curBuildData.nodeCount);
|
curBuildData.NodeInfos = new List<BuildData.BuildNode>(curBuildData.nodeCount);
|
||||||
for (int i = 0; i < curBuildData.nodeCount; i++)
|
for (int i = 0; i < curBuildData.nodeCount; i++)
|
||||||
{
|
{
|
||||||
var node = new BuildData.BuildNode();
|
var node = new BuildData.BuildNode
|
||||||
node.Name = string.Format(NodeName, i + 1);
|
{
|
||||||
|
Name = string.Format(NodeName, i + 1)
|
||||||
|
};
|
||||||
curBuildData.NodeInfos.Add(node);
|
curBuildData.NodeInfos.Add(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ using PhxhSDK;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using LC.Newtonsoft.Json;
|
||||||
using Framework.GameBuild;
|
using Framework.GameBuild;
|
||||||
using Sirenix.OdinInspector;
|
using Sirenix.OdinInspector;
|
||||||
using Cysharp.Threading.Tasks;
|
using Cysharp.Threading.Tasks;
|
||||||
|
@ -57,6 +58,17 @@ namespace Framework.Manager
|
||||||
[HideInInspector] public List<string> Options;
|
[HideInInspector] public List<string> Options;
|
||||||
|
|
||||||
[HideInInspector] public string IconPath;
|
[HideInInspector] public string IconPath;
|
||||||
|
|
||||||
|
[JsonConstructor]
|
||||||
|
public BuildNode(string name)
|
||||||
|
{
|
||||||
|
this.Name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
[JsonConstructor]
|
||||||
|
public BuildNode()
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue