【a】可视化剧本编辑器 10.StoryEditor
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using Cysharp.Threading.Tasks;
|
||||
|
||||
namespace Stary.Evo.StoryEditor
|
||||
{
|
||||
public class ScriptParagraphNodePlayer : FlowNodePlayer
|
||||
{
|
||||
public new ScriptParagraphNodeData Data;
|
||||
|
||||
/// <summary>
|
||||
/// 字幕路径
|
||||
/// </summary>
|
||||
public ResourcePathData CaptionPath;
|
||||
/// <summary>
|
||||
/// 语音路径
|
||||
/// </summary>
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user