Beispiel #1
0
        private void Vungle_onAdFinishedEvent(global::AdFinishedEventArgs obj)
        {
            Debug.Log("Vungle Ad Finished.");

            Vungle.onAdFinishedEvent -= Vungle_onAdFinishedEvent;

            if (m_currentAdFinishedCallback != null)
            {
                System.Action <AdFinishedEventArgs> tmp_cb = m_currentAdFinishedCallback;
                m_currentAdFinishedCallback = null;
                tmp_cb(new AdFinishedEventArgs(obj.IsCompletedView ? AdFinishedEventArgs.ResultType.FullyWatched : AdFinishedEventArgs.ResultType.Skipped));
            }
        }
Beispiel #2
0
 void OnAdFinished(global::AdFinishedEventArgs unused)
 {
     OnAdCompleted();
 }