refactor(punchtape): 打孔带数据改为Catalog定义驱动并迁移脚本目录
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user