| 293 | } |
| 294 | |
| 295 | void BehaviorTree::unload(bool isReloading) |
| 296 | { |
| 297 | #if USE_EDITOR |
| 298 | Level::ScriptsReloadStart.Unbind<BehaviorTree, &BehaviorTree::OnScriptsReloadStart>(this); |
| 299 | Level::ScriptsReloadEnd.Unbind<BehaviorTree, &BehaviorTree::OnScriptsReloadEnd>(this); |
| 300 | #endif |
| 301 | |
| 302 | // Clear resources |
| 303 | Graph.Clear(); |
| 304 | } |
| 305 | |
| 306 | AssetChunksFlag BehaviorTree::getChunksToPreload() const |
| 307 | { |