Пример #1
0
        private bool ShowAd(ADGroup adInterfaceGroup, ADShowResultDelegate callback = null, bool bShowReminder = true)
        {
            ResetParams();
            bool bSuccess = false;

            m_ADInterface = ADMgr.S.GetInterface(adInterfaceGroup);
            if (m_ADInterface != null)
            {
                m_ADShowCallback = callback;
                bSuccess         = m_ADInterface.ShowAD();
            }
            if (!bSuccess && !m_IsFinish)
            {
                if (callback != null)
                {
                    callback(m_IsShowSuccess, m_IsRewardSuccess, m_IsClickAd);
                }
                if (bShowReminder)
                {
                    UIMgr.S.OpenPanel(UIID.FloatMessagePanel, "AD no prepare.");
                }
            }

            return(bSuccess);
        }
Пример #2
0
 public static bool ShowAD(ADGroup adInterfaceGroup, ADShowResultDelegate callback = null, bool bShowReminder = true)
 {
     return(m_GlobalAdDisPlayer.ShowAd(adInterfaceGroup, callback, bShowReminder));
 }