Ejemplo n.º 1
0
            public void OnInterstitialClosed(string message)
            {
                Debug.Log("InterstitialsDelegate:: OnInterstitialClosed: " + message);
                TTPILRDData ilrdData = null;

                if (!string.IsNullOrEmpty(message))
                {
                    ilrdData = JsonUtility.FromJson <TTPILRDData>(message);
                }
                ((TTPCore.TTPSoundMgr)TTPCore.SoundMgr).PauseGameMusic(false, TTPCore.TTPSoundMgr.Caller.INTERSTITIAL);

                if (_onContinueActionILRD != null)
                {
                    _onContinueActionILRD.Invoke(ilrdData);
                }
                else if (_onContinueAction != null)
                {
                    _onContinueAction.Invoke();
                }

                _onContinueAction     = null;
                _onContinueActionILRD = null;

                if (Impl != null && Impl.GetType() == typeof(EditorImpl) && ((EditorImpl)Impl)._onClosedAction != null)
                {
                    ((EditorImpl)_impl)._onClosedAction.Invoke();
                }
            }
Ejemplo n.º 2
0
 private static void NotifyOpenAdsHasFinished(TTPILRDData ilrdData)
 {
     Debug.Log("TTPOpenAds::NotifyOpenAdsHasFinished: ");
     if (OnShowingOpenAdsHasFinished != null)
     {
         OnShowingOpenAdsHasFinished(ilrdData);
     }
 }