void Start() { BehaviorTreeBuilder builder = new BehaviorTreeBuilder(); builder.Sequence("sequence1"); builder.Action("action1", Action01); builder.Action("action2", Action02); builder.Sequence("sequence02"); builder.Action("action03", Action03); builder.Action("action04", Action04); builder.End(); builder.Action("Action05", Action05); builder.Action("Action06", Action06); builder.End(); tree = builder.Build(); }