Quantcast
Channel: Questions in topic: "ads"
Viewing all articles
Browse latest Browse all 1416

Assign delegates for adColony V4VC Videos correctly?

$
0
0
Hi, I am following this example to integrate V4VC Videosfrom adcolony into my mobile app: https://github.com/AdColony/AdColony-Unity-SDK/wiki/Showing-V4VC-Videos In the example, assigning the delegates and defining the method is all done within one script. In my game that is not possible since I want to play videos at several points in the game (Menues, Levels...). I'm using a Game Manager based on the Singleton pattern. Within the Awake() Method I have the following code to configure AdColony. #if UNITY_ANDROID AdColony.Configure( "version:1.1.1,store:google", "[myZoneID1]", "[myZoneID2]" ); #endif myZoneID1 plays Interstitial Videos every 5th the game starts. myZoneID2 plays V4VC-Video2 within the different levels when the player clicks on a button. According to the link above I need to assign delegates before calling Configure(). So how can I assign the delegates for the different scenes already in gameManager. I need both the ` AdColony.OnVideoFinished = this.OnVideoFinished; AdColony.OnV4VCResult = this.OnV4VCResult;` delegates.

Viewing all articles
Browse latest Browse all 1416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>