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