Add bt nodes init

This commit is contained in:
Wojtek Figat
2023-08-16 22:28:48 +02:00
parent 6e85bb8f75
commit d1e2d6699e
4 changed files with 24 additions and 2 deletions

View File

@@ -146,6 +146,12 @@ Asset::LoadResult BehaviorTree::load()
return LoadResult::Failed;
}
// Init graph
if (Graph.Root)
{
Graph.Root->Init(this);
}
return LoadResult::Ok;
}