【a】可视化剧本编辑器 10.StoryEditor
This commit is contained in:
25
Assets/10.StoryEditor/RunTime/Data/Node/EndNodeData.cs
Normal file
25
Assets/10.StoryEditor/RunTime/Data/Node/EndNodeData.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Stary.Evo.StoryEditor
|
||||
{
|
||||
[Serializable]
|
||||
public class EndNodeData : NodeData
|
||||
{
|
||||
public List<int> pre = new();
|
||||
|
||||
public EndNodeData()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public EndNodeData(NodeData data)
|
||||
{
|
||||
name = data.name;
|
||||
type = NodeType.End;
|
||||
}
|
||||
|
||||
public new EndNodePlayer GetPlayer(GraphPlayer graph) =>
|
||||
new(graph, this);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user