Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. void MainMenuLayer::onClickMoreGames(cocos2d::CCObject *sender)
  2. {
  3. if ( GameSetting::shared()->isEnableSound() )
  4. {
  5. CocosDenshion::SimpleAudioEngine::sharedEngine()->playEffect("click.caf", false);
  6. }
  7.  
  8. LetItRide::LetItRideSetting::shared()->giveMeMoreGamesAd();
  9. }
  10.  
  11. void LetItRide::LetItRideSetting::giveMeMoreGamesAd()
  12. {
  13. //[[SNAdsManager sharedManager] giveMeMoreAppsAd];
  14. //zs more game
  15. AppController* app = (AppController*)[[UIApplication sharedApplication] delegate];
  16. [app collectCoins];
  17.  
  18. }
  19.  
  20. (void)applicationDidBecomeActive:(UIApplication *)application {
  21.  
  22.  
  23. [self initAdCalony];
  24. cocos2d::CCDirector::sharedDirector()->resume();
  25. }
  26. #pragma mark Adcalony
  27. -(void)initAdCalony{
  28. //zs adcalony init
  29. [AdColony configureWithAppID:AdcalonyAppid zoneIDs:@[AdcalonyZoneId] delegate:self logging:YES];
  30. }
  31. -(void)showAdcolony{
  32. //zs show Ad calony
  33. [AdColony playVideoAdForZone:AdcalonyZoneId withDelegate:self withV4VCPrePopup:NO andV4VCPostPopup:NO];
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement