void Start()
 {
     StartAppWrapper.showSplash();
     adEventListener = new AdEventListenerImplementation();
     videoListener   = new VideoListenerImplementation();
     StartAppWrapper.setVideoListener(videoListener);
 }
Пример #2
0
 //init video ad
 public void InitVideoAd()
 {
             #if UNITY_ANDROID
     VideoListenerImplementation videoListener = new VideoListenerImplementation();
     StartAppWrapper.setVideoListener(videoListener);
     StartAppWrapper.loadAd(StartAppWrapper.AdMode.REWARDED_VIDEO);
             #endif
 }
Пример #3
0
    void Start()
    {
                #if UNITY_ANDROID
        var videoListener = new VideoListenerImplementation();
        StartAppWrapper.setVideoListener(videoListener);
//		StartAppWrapper.loadAd(StartAppWrapper.AdMode.REWARDED_VIDEO);
                #endif
    }
Пример #4
0
    //
    public void ChangeToScene(int NumberOfScene)
    {
        TimeToFade();
        Time.timeScale = 1;                     // this code make time in game run normally and it seem like game is running.
        SceneManager.LoadScene(NumberOfScene, LoadSceneMode.Single);

                #if UNITY_ANDROID
        VideoListenerImplementation videoListener = new VideoListenerImplementation();
        StartAppWrapper.setVideoListener(videoListener);
        StartAppWrapper.loadAd(StartAppWrapper.AdMode.REWARDED_VIDEO);
        ShowVideo();
                #endif
    }