Open ngocpn57 opened 10 years ago
use messageSentFromMainToTitleScene in this way.
void TitleScene::messageSentFromMainToTitleScene(Node* sender, void *data){ // some stuffs here }
and call in this way
NDKHelper::AddSelector("TitleScene", "messageSentFromMainToTitleScene", callfuncND_selector(MenuUI::sharingCompleteCallback), this);
hope so it will work in your side let me know if it not worked. kindly pull latest ndk i have made some changes regarding removal of selectors with the name of groupName. just call function in destructor of your class NDKHelper::RemoveSelectorsInGroup();
I'm using cocos2d-x 3.2 and I noticed EasyNDK can send message from C++ to native environment but the opposite direction is not working
I have this on the scene
And this one in RootViewController.mm
The method
messageSentFromMainToTitleScene
is never called, and there is no error log in the outputI also tried to replace the first parameter of
messageSentFromMainToTitleScene
with type Node*, and a non-nil parameter inwithParameters
but still no luck