【测试】
parent
54c4e88145
commit
5a8545c5b2
|
@ -51,6 +51,7 @@ namespace Framework.Manager
|
||||||
[LabelText("对应组")] public int conditionGroup;
|
[LabelText("对应组")] public int conditionGroup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Serializable]
|
||||||
public class BuildNode
|
public class BuildNode
|
||||||
{
|
{
|
||||||
[LabelText("挂点名称")] [ReadOnly] public string Name;
|
[LabelText("挂点名称")] [ReadOnly] public string Name;
|
||||||
|
@ -63,6 +64,8 @@ namespace Framework.Manager
|
||||||
public BuildNode(string name)
|
public BuildNode(string name)
|
||||||
{
|
{
|
||||||
this.Name = name;
|
this.Name = name;
|
||||||
|
this.Options = new List<string>();
|
||||||
|
this.IconPath = string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BuildNode()
|
public BuildNode()
|
||||||
|
|
|
@ -6,9 +6,18 @@ using Framework.Event;
|
||||||
using Gameplay.Level;
|
using Gameplay.Level;
|
||||||
using Framework.UI;
|
using Framework.UI;
|
||||||
using PhxhSDK;
|
using PhxhSDK;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
public partial class SROptions
|
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<Sprite>(iconPath);
|
||||||
|
DebugUtil.LogError("加载失败:{0}", sprite == null);
|
||||||
|
}
|
||||||
|
|
||||||
[Category("关卡相关"), DisplayName("增加10s")]
|
[Category("关卡相关"), DisplayName("增加10s")]
|
||||||
public void IncreaseTime()
|
public void IncreaseTime()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue