using Cysharp.Threading.Tasks; namespace Stary.Evo.StoryEditor { public class ScriptParagraphNodePlayer : FlowNodePlayer { public new ScriptParagraphNodeData Data; /// /// 字幕路径 /// public ResourcePathData CaptionPath; /// /// 语音路径 /// public ResourcePathData AudioPath; public ScriptParagraphNodePlayer(GraphPlayer graph, ScriptParagraphNodeData data) : base(graph, data) { Data = data; CaptionPath = data.captionPath; AudioPath = data.audioPath; } public override async UniTask Execute() { Init(); await ScriptPlayer.PlayScriptPara(this, Graph.Cts.Token); await base.Execute(); } } }