mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
In Package Manager UI 2.0 (compatible with Unity 2019.1), you can include samples in a package.
https://forum.unity.com/threads/samples-in-packages-manual-setup.623080/
16 lines
369 B
C#
16 lines
369 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace XNode.Examples.StateGraph {
|
|
[CreateAssetMenu(fileName = "New State Graph", menuName = "xNode Examples/State Graph")]
|
|
public class StateGraph : NodeGraph {
|
|
|
|
// The current "active" node
|
|
public StateNode current;
|
|
|
|
public void Continue() {
|
|
current.MoveNext();
|
|
}
|
|
}
|
|
} |