#pragma strict
private var fullscreenAd : iOS.ADInterstitialAd;
function Start()
{
fullscreenAd = new iOS.ADInterstitialAd();
iOS.ADInterstitialAd.onInterstitialWasLoaded += OnFullscreenLoaded;
}
function OnFullscreenLoaded()
{
fullscreenAd.Show();
}
using UnityEngine;
using System.Collections;
using ADInterstitialAd = UnityEngine.iOS.ADInterstitialAd;
public class NewBehaviourScript : MonoBehaviour {
private ADInterstitialAd fullscreenAd = null;
void Start()
{
fullscreenAd = new ADInterstitialAd();
ADInterstitialAd.onInterstitialWasLoaded += OnFullscreenLoaded;
}
void OnFullscreenLoaded()
{
fullscreenAd.Show();
}
}