2025-08-18 23:16:13 +08:00

31 lines
981 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// UITask.cs
using System;
namespace TH1_Presentation.Sequencer.Task
{
public class UISequencerTask : ISequencerTask
{
//private readonly MyPopupUI _popupInstance; // 依赖你具体的UI脚本
private readonly string _popupContent;
/// <summary>
/// 创建一个UI任务。
/// </summary>
/// <param name="popupInstance">要显示的UI实例。</param>
/// <param name="popupContent">要在UI上显示的内容。</param>
/*public UITask(MyPopupUI popupInstance, string popupContent)
{
_popupInstance = popupInstance;
_popupContent = popupContent;
}
*/
public void Execute(Action onComplete)
{
// 调用UI的显示方法并将完成回调函数传递给它
// 当UI的关闭按钮被点击时MyPopupUI会调用这个onComplete
// _popupInstance.Show(_popupContent, onComplete);
}
}
}