namespace ColdMint.scripts.behaviorTree; /// /// BehaviorTreeTemplate /// 行为树模板 /// public abstract class BehaviorTreeTemplate : IBehaviorTree { private IBehaviorTreeNode? _root; private string? _id; public IBehaviorTreeNode? Root => _root; public string? Id => _id; public void Init() { _root = CreateRoot(); _id = CreateId(); } protected abstract IBehaviorTreeNode? CreateRoot(); protected abstract string? CreateId(); }