Is there a way like that
void OnReady (string zoneId)
{
if(show==true)
{
ShowAd(zoneId);
}
}
instead of
void Update ()
{
bool isReady = Advertisement.isReady(zoneId);
if(isReady==true && show==true)
{
ShowAd(zoneId);
}
}
↧