Exemplo n.º 1
0
 public void OnOpenAdShown()
 {
     Debug.Log("OpenAdsDelegate::OnOpenAdShown: ");
     ((TTPCore.TTPSoundMgr)TTPCore.SoundMgr).PauseGameMusic(true, TTPCore.TTPSoundMgr.Caller.OPEN_ADS);
     if (showingLoadingScreen)
     {
         TTPOpenAds.CloseLoadingScreen();
     }
 }
Exemplo n.º 2
0
 public void CloseLoadingScreen(string message)
 {
     Debug.Log("OpenAdsDelegate::CloseLoadingScreen:" + message);
     TTPOpenAds.CloseLoadingScreen();
     if (message != null)
     {
         Debug.Log("OpenAdsDelegate::CloseLoadingScreen: " + message);
         var onClosedMessage = JsonUtilityWrapper.FromJson <OnClosedMessage>(message);
         if (onClosedMessage != null)
         {
             if (onClosedMessage.result)
             {
                 TTPOpenAds.NotifyOpenAdsHasFinished(null);
             }
         }
     }
 }