alexsosnovskiy

Untitled

Jul 23rd, 2015
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1. public class AppodealInterval : MonoBehaviour, IVideoAdListener
  2. {
  3.     private static float _timer = 0;
  4.  
  5.     void Start ()
  6.     {
  7.         Appodeal.initialize("8b272aa477b3fb3a8ba0f2e1657e51efc");
  8.         Appodeal.setVideoCallbacks(this);
  9.         Appodeal.isLoaded(Appodeal.VIDEO);
  10.         Appodeal.show(Appodeal.VIDEO);
  11.  
  12.         var deltaTime = Time.realtimeSinceStartup - _timer;
  13.  
  14.         if (deltaTime > 60 && Appodeal.isLoaded(Appodeal.VIDEO))
  15.         {
  16.             _timer = Time.realtimeSinceStartup;
  17.             Appodeal.show(Appodeal.VIDEO);
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment