StateGraph.cs 369 B

12345678910111213141516
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace XNode.Examples.StateGraph {
  5. [CreateAssetMenu(fileName = "New State Graph", menuName = "xNode Examples/State Graph")]
  6. public class StateGraph : NodeGraph {
  7. // The current "active" node
  8. public StateNode current;
  9. public void Continue() {
  10. current.MoveNext();
  11. }
  12. }
  13. }