- Home /
Assign delegates for adColony V4VC Videos correctly?
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.
Your answer
Follow this Question
Related Questions
Advertisements does not exist 8 Answers
Am I allowed to make money under 18 years old? 2 Answers
How to implement unity ads onto an app? 1 Answer
Advertisement.Initialize() NullReferenceException. 2 Answers
Unity3d banner ads 1 Answer