using JetBrains.Annotations;
namespace Unity.VisualScripting
{
///
/// Check if a GameObject or ScriptMachine has a ScriptGraph
///
[TypeIcon(typeof(FlowGraph))]
[UnitCategory("Graphs/Graph Nodes")]
public sealed class HasScriptGraph : HasGraph
{
///
/// The type of object that handles the graph.
///
[Serialize, Inspectable, UnitHeaderInspectable, UsedImplicitly]
public ScriptGraphContainerType containerType { get; set; }
protected override bool isGameObject => containerType == ScriptGraphContainerType.GameObject;
}
}