MCPcopy Create free account
hub / github.com/axmolengine/axmol / onExit

Method onExit

core/navmesh/NavMeshAgent.cpp:130–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void 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
143void ax::NavMeshAgent::onEnter()
144{

Callers

nothing calls this directly

Calls 2

getSceneMethod · 0.80
removeNavMeshAgentMethod · 0.80

Tested by

no test coverage detected