修复了一些bug(包含窗口预制体中的错误与{}列表解析存在死循环的错误)

This commit is contained in:
2025-10-04 23:09:46 +08:00
parent 1ecb1b0ba4
commit 84e31fe63a
16 changed files with 2590 additions and 832 deletions

View File

@@ -13,8 +13,10 @@ namespace Demo.Game
return new GameObject().AddComponent<SplineTubeRenderer>();
}
[Content] public bool IsDoubleSide = true;
[Content] public int SidesCount = 12;
public const bool DefaultIsDoubleSide = true;
public const int DefaultSidesCount = 12;
[Content] public bool IsDoubleSide = DefaultIsDoubleSide;
[Content] public int SidesCount = DefaultSidesCount;
public override IEnumerator LoadScript(string script)
{
@@ -31,10 +33,12 @@ namespace Demo.Game
public override IEnumerator UnloadScript()
{
if (string.IsNullOrEmpty(LinesAssetBundlePath) == false)
yield return this.UnloadAssetBundle(LinesAssetBundlePath);
LinesAssetBundlePath = "";
yield return base.UnloadScript();
// Reset
{
IsDoubleSide = DefaultIsDoubleSide;
SidesCount = DefaultSidesCount;
}
}
/// <summary>