public void playAdForCoins() { /*if (Advertisement.IsReady ()) { * Advertisement.Show (null, new ShowOptions { * resultCallback = ShowResult => { * if(ShowResult == ShowResult.Finished) { * PlayerPrefs.SetInt ("GameTime", 0); * PlayerPrefs.SetInt ("adIteration", 0); * PlayerPrefs.SetInt ("coins", PlayerPrefs.GetInt ("coins") + 100); * Application.LoadLevel ("ShopMenu"); * } * } * }); * }*/ ChartboostExample.runAddCoinsAd(); }
public void runVideoAd() { ChartboostExample.runAddCoinsAd(); }