refactor(punchtape): 打孔带数据改为Catalog定义驱动并迁移脚本目录

This commit is contained in:
2026-07-20 02:10:24 +08:00
parent 6bf967e8b3
commit 3ed84f79b1
33 changed files with 1624 additions and 256 deletions
@@ -396,8 +396,10 @@ namespace AibisDream.FixSystem
if (!useYarn)
{
DialogController.Instance.StartDialogNode(
LocalizationKit.GetL10NParamKey(punchTapeSlot.punchTape.ClueName));
if (!PunchTapeManager.Instance.TryGetDefinition(punchTapeSlot.punchTape, out var definition))
yield break;
DialogController.Instance.StartDialogNode(definition.DialogNode);
}
}
@@ -422,6 +424,12 @@ namespace AibisDream.FixSystem
_activePunchTape = punchTape;
if (!PunchTapeManager.Instance.TryGetDefinition(_activePunchTape, out var definition))
{
StartStandbyOverlay();
yield break;
}
if (isProcessing)
{
Debug.LogWarning("Already processing a memory. Please wait until the process is finished.");
@@ -431,7 +439,7 @@ namespace AibisDream.FixSystem
StopStandbyOverlay();
ShowSearchOverlay();
var searchMemoryKey = string.Format(MemorySpritePath, _activePunchTape.MemoryIndex);
var searchMemoryKey = string.Format(MemorySpritePath, definition.MemoryResourceKey);
var searchMemoryHandle = ResourceSystem.LoadAsync<Sprite>(searchMemoryKey);
yield return searchMemoryHandle;
Sprite memorySprite = searchMemoryHandle.Status == AsyncOperationStatus.Succeeded