diff --git a/cocos/2d/CCNode.cpp b/cocos/2d/CCNode.cpp index 4ac671aa64..7ff1e04c0a 100644 --- a/cocos/2d/CCNode.cpp +++ b/cocos/2d/CCNode.cpp @@ -1310,8 +1310,8 @@ Mat4 Node::transform(const Mat4& parentTransform) void Node::onEnter() { - if (onEnterCallback) - onEnterCallback(); + if (_onEnterCallback) + _onEnterCallback(); #if CC_ENABLE_SCRIPT_BINDING if (_scriptType == kScriptTypeJavascript) @@ -1340,8 +1340,8 @@ void Node::onEnter() void Node::onEnterTransitionDidFinish() { - if (onEnterTransitionDidFinishCallback) - onEnterTransitionDidFinishCallback(); + if (_onEnterTransitionDidFinishCallback) + _onEnterTransitionDidFinishCallback(); #if CC_ENABLE_SCRIPT_BINDING if (_scriptType == kScriptTypeJavascript) @@ -1365,8 +1365,8 @@ void Node::onEnterTransitionDidFinish() void Node::onExitTransitionDidStart() { - if (onExitTransitionDidStartCallback) - onExitTransitionDidStartCallback(); + if (_onExitTransitionDidStartCallback) + _onExitTransitionDidStartCallback(); #if CC_ENABLE_SCRIPT_BINDING if (_scriptType == kScriptTypeJavascript) @@ -1389,8 +1389,8 @@ void Node::onExitTransitionDidStart() void Node::onExit() { - if (onExitCallback) - onExitCallback(); + if (_onExitCallback) + _onExitCallback(); #if CC_ENABLE_SCRIPT_BINDING if (_scriptType == kScriptTypeJavascript)