diff --git a/Forest/Assets/Scripts/Framework/Manager/BuildManager.cs b/Forest/Assets/Scripts/Framework/Manager/BuildManager.cs index f72a027..4cf24d0 100644 --- a/Forest/Assets/Scripts/Framework/Manager/BuildManager.cs +++ b/Forest/Assets/Scripts/Framework/Manager/BuildManager.cs @@ -51,6 +51,7 @@ namespace Framework.Manager [LabelText("对应组")] public int conditionGroup; } + [Serializable] public class BuildNode { [LabelText("挂点名称")] [ReadOnly] public string Name; @@ -63,6 +64,8 @@ namespace Framework.Manager public BuildNode(string name) { this.Name = name; + this.Options = new List(); + this.IconPath = string.Empty; } public BuildNode() diff --git a/Forest/Assets/Scripts/Gameplay/Debug/SROptions.Level.cs b/Forest/Assets/Scripts/Gameplay/Debug/SROptions.Level.cs index 8f746c0..47545d0 100644 --- a/Forest/Assets/Scripts/Gameplay/Debug/SROptions.Level.cs +++ b/Forest/Assets/Scripts/Gameplay/Debug/SROptions.Level.cs @@ -6,9 +6,18 @@ using Framework.Event; using Gameplay.Level; using Framework.UI; using PhxhSDK; +using UnityEngine; public partial class SROptions { + [Category("临时测试"), DisplayName("读取文件")] + public async void ReadFile() + { + var iconPath = "Assets/Art/GameBuild/Texture/Series_Spring/Node1/Icon/Grass_1.png"; + var sprite = await AssetManager.Instance.LoadAssetAsync(iconPath); + DebugUtil.LogError("加载失败:{0}", sprite == null); + } + [Category("关卡相关"), DisplayName("增加10s")] public void IncreaseTime() {