Search Unity

Unity Ads cocos2d/ios example?

Discussion in 'Unity Ads & User Acquisition' started by mdanko, Feb 2, 2015.

  1. mdanko

    mdanko

    Joined:
    Feb 2, 2015
    Posts:
    3
    Hi all, I am new to unity ads and I have a need to integrate into an existing cocos2d project. I'm following the docs here:

    http://unityads.unity3d.com/help/Documentation for Publishers/Integration-Guide-for-iOS

    but having trouble where I need to configure the view controller as a delegate (Configuring your ViewController as a Delegate section). I'm not sure where to go from here since cocos2d is not your typical MVC style framework. I've searched online but come up with nothing that helps. Hoping someone here can point me in the right direction.

    Thanks in advance for any tips!
     
  2. Sun-Pengfei

    Sun-Pengfei

    Joined:
    Nov 12, 2015
    Posts:
    37
    Try this
    [[UnityAds sharedInstance] setViewController:[CCDirector sharedDirector]];
     
  3. BenoitFreslon

    BenoitFreslon

    Joined:
    Jan 16, 2013
    Posts:
    164