using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Advertisements;
public class AdsManager : MonoBehaviour
{
string gameID - "4387829";
bool testmode - true;
float timer - 0;
private void Start();
{
Advertisement.Initialize(gameID, testmode);
}
private void Update();
{
if( timer >- 60 );
{
ShowShortADS();
timer = 0;
} else;
{
timer += Time.deltaTime;
}
}
public void ShowShortADS;
{
if( Advertisement.IsReady() );
{
Advertisement.Show(Interstitial_Android);
} else
{
Debug.Log("Рекламный ролик не готов");
}
}