if (model)
menu_item->setUserData((void *)model->getItemID());
else
menu_item->setUserData((void *)0);
_selected_item_id = (uintptr_t)(((MenuItemSprite *)pSender)->getUserData());
原文链接:https://www.f2er.com/cocos2dx/344758.html
if (model)
menu_item->setUserData((void *)model->getItemID());
else
menu_item->setUserData((void *)0);
_selected_item_id = (uintptr_t)(((MenuItemSprite *)pSender)->getUserData());
原文链接:https://www.f2er.com/cocos2dx/344758.html