26 lines
638 B
C#
26 lines
638 B
C#
using UnityEngine;
|
|
|
|
namespace AibisDream
|
|
{
|
|
public class DialogBox : DialogBoxBase
|
|
{
|
|
[SerializeField] protected GameObject choiceButton;
|
|
|
|
private void Start()
|
|
{
|
|
// 初始化选择按钮
|
|
choiceButtonPrefab = choiceButton;
|
|
// 注册Viewer
|
|
DialogCanvasManager.Instance.RegisterDialogView(DialogViewType.OldBox, this);
|
|
|
|
gameObject.SetActive(false);
|
|
}
|
|
|
|
protected override void OnDialogViewerDestroy()
|
|
{
|
|
DialogCanvasManager.Instance.UnregisterDialogView(DialogViewType.OldBox);
|
|
}
|
|
}
|
|
}
|
|
|