Example #1
0
        /// <summary>
        /// Ad has been set up successfully.
        /// </summary>
        private void Success()
        {
            m_playableAd.SetLinkText();
            m_playableAd.UpdateEventTimeValues();

            if (OnAdReady != null)
            {
                OnAdReady(m_playableAd);
            }
        }
Example #2
0
        /// <summary>
        /// Ad playback started. Send ad to player controller so UI can be updated.
        /// </summary>
        private void OnStarted()
        {
            if (OnPlaybackStarted != null)
            {
                OnPlaybackStarted(m_currentAd);
            }

            m_currentAd.StartTime = Time.realtimeSinceStartup;
            m_currentAd.UpdateEventTimeValues();

            ChangeState(PlayerState.Playing);
        }