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

Method onEnter

core/2d/Node.cpp:1337–1364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1335// MARK: events
1336
1337void Node::onEnter()
1338{
1339 if (!_running)
1340 {
1341 ++__attachedNodeCount;
1342 }
1343
1344 if (_onEnterCallback)
1345 _onEnterCallback();
1346
1347 if (_componentContainer && !_componentContainer->isEmpty())
1348 {
1349 _componentContainer->onEnter();
1350 }
1351
1352 _isTransitionFinished = false;
1353
1354 for (const auto& child : _children)
1355 child->onEnter();
1356
1357 this->resume();
1358
1359 _running = true;
1360
1361#if AX_ENABLE_SCRIPT_BINDING
1362 ScriptEngineManager::sendNodeEventToLua(this, kNodeOnEnter);
1363#endif
1364}
1365
1366void Node::onEnterTransitionDidFinish()
1367{

Callers 5

addChildHelperMethod · 0.45
addChildHelperMethod · 0.45
addComponentMethod · 0.45
setNextSceneMethod · 0.45
setNotificationNodeMethod · 0.45

Calls 2

resumeMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected