void Start() { StartAppWrapper.showSplash(); adEventListener = new AdEventListenerImplementation(); videoListener = new VideoListenerImplementation(); StartAppWrapper.setVideoListener(videoListener); }
//init video ad public void InitVideoAd() { #if UNITY_ANDROID VideoListenerImplementation videoListener = new VideoListenerImplementation(); StartAppWrapper.setVideoListener(videoListener); StartAppWrapper.loadAd(StartAppWrapper.AdMode.REWARDED_VIDEO); #endif }
void Start() { #if UNITY_ANDROID var videoListener = new VideoListenerImplementation(); StartAppWrapper.setVideoListener(videoListener); // StartAppWrapper.loadAd(StartAppWrapper.AdMode.REWARDED_VIDEO); #endif }
// 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 }