void MultiPriceMatch::gamewin(){ long curscore = m_iUserTotalScore; AppDelegate *app = (AppDelegate*)Application::getInstance(); this->unschedule(schedule_selector(MultiPriceMatch::updateTimeLabel)); int score = 0; int ttlseconds = _gametime / 60; //std::string strSKU = "1400039210"; //app->setPromoteProduct(""); //if(app->getGameLevelPassedInfo() == 0){ // if (ttlseconds > 60 && ttlseconds <= 90){ // score = WIN_POINT_HIG; // }else if(ttlseconds > 30 && ttlseconds <= 60){ // score = WIN_POINT_MED; // }else{rea // score = WIN_POINT_LOW; // } //}else{ // score = WIN_POINT_LOW; //} //_gamestatus = GAME_OVER; _vec_circle.clear(); _vec_circle2.clear(); // AppDelegate *app = (AppDelegate*)Application::getInstance(); if(app->iGameMode == MobileGameMode::Theme_Mode){ app->GameRunRoundNext(); }else{ //app->UpdateUserScore(1,score); //app->setReward(score); app->updateGameWinScore(ttlseconds); app->SaveGamePassLevel();//Add by Long to Save Level app->moveToNextGameLevel(); this->scheduleOnce(schedule_selector(MultiPriceMatch::delayWinQuit),1.0f); //auto scene = GameWin::createScene(); //if(scene != nullptr){ // TransitionScene *transition = TransitionFade::create(1, scene); // Director::getInstance()->replaceScene(transition); //} } }