| 128 | } |
| 129 | |
| 130 | void ax::NavMeshAgent::onExit() |
| 131 | { |
| 132 | if (_agentID == -1) |
| 133 | return; |
| 134 | Component::onExit(); |
| 135 | |
| 136 | auto scene = _owner->getScene(); |
| 137 | if (scene && scene->getNavMesh()) |
| 138 | { |
| 139 | scene->getNavMesh()->removeNavMeshAgent(this); |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | void ax::NavMeshAgent::onEnter() |
| 144 | { |
nothing calls this directly
no test coverage detected