| 1496 | } |
| 1497 | |
| 1498 | void Director::setNotificationNode(Node* node) |
| 1499 | { |
| 1500 | if (_notificationNode != nullptr) |
| 1501 | { |
| 1502 | _notificationNode->onExitTransitionDidStart(); |
| 1503 | _notificationNode->onExit(); |
| 1504 | _notificationNode->cleanup(); |
| 1505 | } |
| 1506 | AX_SAFE_RELEASE(_notificationNode); |
| 1507 | |
| 1508 | _notificationNode = node; |
| 1509 | if (node == nullptr) |
| 1510 | return; |
| 1511 | _notificationNode->onEnter(); |
| 1512 | _notificationNode->onEnterTransitionDidFinish(); |
| 1513 | AX_SAFE_RETAIN(_notificationNode); |
| 1514 | } |
| 1515 | |
| 1516 | void Director::setScheduler(Scheduler* scheduler) |
| 1517 | { |
no test coverage detected