Search Unity

Had to take game down from play store

Discussion in 'Unity Ads & User Acquisition' started by Ziron999, Sep 30, 2015.

  1. Ziron999

    Ziron999

    Joined:
    Jan 22, 2014
    Posts:
    282
    Code (CSharp):
    1. public IEnumerator LoadGame()
    2.     {
    3. #if UNITY_IOS || UNITY_ANDROID
    4.         if (AdVersion)
    5.         {
    6.             //showLoading.SetActive(true);
    7.             while (!Advertisement.IsReady())
    8.                 yield return new WaitForSeconds(0.1f);
    9.             //ShowOptions options = new ShowOptions();
    10.             //options.resultCallback = AdCallbackhandler;
    11.             //Advertisement.Show("", options);
    12.             Advertisement.Show();
    13.             while (Advertisement.isShowing)
    14.                 yield return new WaitForSeconds(0.1f);
    15.         }
    16. #endif
    17.         yield return new WaitForSeconds(0.1f);
    18.         DoLoad();
    19.     }
    adversion will = true so ignore that...

    Ok so here's the deal...this DOES work in the editor on pc but as soon as I build to android and start the game it get's to the ad, shows it, but never calls "DoLoad()"! I've tried everything but it just won't do that part.
     
  2. Ziron999

    Ziron999

    Joined:
    Jan 22, 2014
    Posts:
    282
    This turned out to be a asset reference issue after upgrading to 5.2 somehow. fixed