示例#1
0
            public void OnOpenAdClosed(string message)
            {
                Debug.Log("OpenAdsDelegate::OnOpenAdClosed:message=" + message);
                ((TTPCore.TTPSoundMgr)TTPCore.SoundMgr).PauseGameMusic(false, TTPCore.TTPSoundMgr.Caller.OPEN_ADS);
                var ilrdData = JsonUtilityWrapper.FromJson <TTPILRDData>(message);

                TTPOpenAds.NotifyOpenAdsHasFinished(ilrdData);
            }
示例#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);
             }
         }
     }
 }