架构大更
This commit is contained in:
15
Assets/Scripts/SLSUtilities/StorySystem/Runtime/GraphBase.cs
Normal file
15
Assets/Scripts/SLSUtilities/StorySystem/Runtime/GraphBase.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace SLSFramework.StorySystem
|
||||
{
|
||||
public abstract class GraphBase : ScriptableObject
|
||||
{
|
||||
// 使用 [SerializeReference] 来支持多态性,存储不同类型的节点数据
|
||||
[SerializeReference]
|
||||
public List<BaseNodeData> nodes = new List<BaseNodeData>();
|
||||
|
||||
// 存储节点之间的连接
|
||||
public List<EdgeData> edges = new List<EdgeData>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user