A game about forced loneliness, made by TACStudios
1using System;
2using JetBrains.Annotations;
3using UnityEngine;
4
5namespace Unity.VisualScripting
6{
7 /// <summary>
8 /// Check if a GameObject or StateMachine has a StateGraph
9 /// </summary>
10 [TypeIcon(typeof(StateGraph))]
11 [UnitCategory("Graphs/Graph Nodes")]
12 public sealed class HasStateGraph : HasGraph<StateGraph, StateGraphAsset, StateMachine>
13 {
14 /// <summary>
15 /// The type of object that handles the graph.
16 /// </summary>
17 [Serialize, Inspectable, UnitHeaderInspectable, UsedImplicitly]
18 public StateGraphContainerType containerType { get; set; }
19
20 protected override bool isGameObject => containerType == StateGraphContainerType.GameObject;
21 }
22}