Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void MainMenuLayer::onClickMoreGames(cocos2d::CCObject *sender)
- {
- if ( GameSetting::shared()->isEnableSound() )
- {
- CocosDenshion::SimpleAudioEngine::sharedEngine()->playEffect("click.caf", false);
- }
- LetItRide::LetItRideSetting::shared()->giveMeMoreGamesAd();
- }
- void LetItRide::LetItRideSetting::giveMeMoreGamesAd()
- {
- //[[SNAdsManager sharedManager] giveMeMoreAppsAd];
- //zs more game
- AppController* app = (AppController*)[[UIApplication sharedApplication] delegate];
- [app collectCoins];
- }
- (void)applicationDidBecomeActive:(UIApplication *)application {
- [self initAdCalony];
- cocos2d::CCDirector::sharedDirector()->resume();
- }
- #pragma mark Adcalony
- -(void)initAdCalony{
- //zs adcalony init
- [AdColony configureWithAppID:AdcalonyAppid zoneIDs:@[AdcalonyZoneId] delegate:self logging:YES];
- }
- -(void)showAdcolony{
- //zs show Ad calony
- [AdColony playVideoAdForZone:AdcalonyZoneId withDelegate:self withV4VCPrePopup:NO andV4VCPostPopup:NO];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement