Files
david d9fb5ee7bc add unity behavior tree package & examples
add start of own implementation of a behavior tree
2025-04-23 12:33:28 +02:00

31 lines
486 B
C#

using System.Collections.Generic;
namespace DefaultNamespace.BehaviorTree
{
public abstract class Node
{
protected List<Node> _nodes = new();
public virtual void Start()
{
}
public virtual Status Update()
{
return Status.Success;
}
public virtual void End()
{
}
}
public enum Status
{
Success,
Failure,
Running,
}
}