cocos2dx3.2 LoadingBar设置无效

我在loadscene场景中的init注册了一个事件
static float count = 0;

    auto callBack = =](EventCustom* evt)
    {
        count++;
        float precent = count / (208 + 130 + 62 + 24 + 2) * 100;

        LoadingBar* pLoadBar = dynamic_cast<LoadingBar*>(Helper::seekWidgetByName(m_pLayOut, "ProgressBar"));
        pLoadBar->setPercent(precent);
        log("count%f", count);
        log("percent%f", precent);
        if (precent >= 100)
            log("load res over!!!!!!");
    };

    cocos2d::EventListenerCustom* customEvt = EventListenerCustom::create("LAOD_PRECENT_EVENT", callBack);
    
    Director::getInstance()->getEventDispatcher()->addEventListenerWithFixedPriority(customEvt, 12);

然后在onEnterTransitionDidFinish函数中,加载文件资源并且发送消息Director::getInstance()->getEventDispatcher()->dispatchCustomEvent(“LAOD_PRECENT_EVENT”);

但是进度条毫无反应,只有在最后加载完成的时候突然就变成100%了,请教什么情况,无法理解啊