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); }
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); } } } }