对话框
This commit is contained in:
File diff suppressed because it is too large
Load Diff
+1989
-1992
File diff suppressed because it is too large
Load Diff
+731
-647
File diff suppressed because it is too large
Load Diff
@@ -42,7 +42,7 @@ namespace AibisDream
|
||||
HideDialog();
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
public override void OnSingletonDestroy()
|
||||
{
|
||||
EnumEventSystem.Global.UnRegister(DialogEventEnum.OptionSelected, HideOptions);
|
||||
}
|
||||
@@ -61,6 +61,11 @@ namespace AibisDream
|
||||
.GroupBy(item => item.role)
|
||||
.ToDictionary(group => group.Key, group => group.ToArray());
|
||||
// 更新选项的位置
|
||||
if (groupData.bubbleOptionSlots is { Length: 0 })
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (var optionSlotData in groupData.bubbleOptionSlots)
|
||||
{
|
||||
if (optionSlotData.optionIdx >= _options.Length) continue;
|
||||
|
||||
@@ -15,8 +15,11 @@ namespace AibisDream
|
||||
var optionSlots = GetComponentsInChildren<BubbleOptionSlot>();
|
||||
// 抽取数据
|
||||
data.bubbleSlots = bubbleSlots.Select(item => item.Data).ToArray();
|
||||
data.bubbleOptionSlots = optionSlots.Select(item => item.Data).ToArray();
|
||||
|
||||
if (optionSlots is { Length: 0 })
|
||||
{
|
||||
data.bubbleOptionSlots = optionSlots.Select(item => item.Data).ToArray();
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user