添加事件
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
using System;
|
||||
using AibisDream.Framework;
|
||||
using AibisDream.Kit;
|
||||
using AibisDream.Utility;
|
||||
using Febucci.UI;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using Yarn.Unity;
|
||||
|
||||
namespace AibisDream
|
||||
{
|
||||
@@ -105,12 +105,11 @@ namespace AibisDream
|
||||
ShowActorName(character);
|
||||
dialogText.ShowText(dialogLine);
|
||||
|
||||
// TODO 如果有头像的对话框要加入头像处理
|
||||
|
||||
// 自动跳过的回调很难独立Remove,只能全部清空再注册,下策
|
||||
dialogText.onTextShowed.RemoveAllListeners();
|
||||
dialogText.onTextShowed.AddListener(() => nextArray.gameObject.SetActive(true));
|
||||
dialogText.onTextShowed.AddListener(() => onTextShowed?.Invoke());
|
||||
dialogText.onTextShowed.AddListener(() => EnumEventSystem.Global.Send(DialogEventEnum.LineShowed));
|
||||
|
||||
// 执行自动跳过结局
|
||||
if (isAutoSkip)
|
||||
@@ -119,11 +118,15 @@ namespace AibisDream
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void NextStep()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 展示选项
|
||||
/// </summary>
|
||||
/// <param name="dialogueOptions">对话选项</param>
|
||||
/// <param name="onOptionSelected">选项选择</param>
|
||||
public virtual void ShowOptions(DialogOption[] dialogueOptions)
|
||||
{
|
||||
gameObject.SetActive(true);
|
||||
|
||||
Reference in New Issue
Block a user