Having all sorts of problems trying to get ads to play after 3 game overs, could anyone please help.
static int i = 0;
// Use this for initialization
void Start()
{
if (GameManager.singleton.isGameOver == true && i % 4 == 0)
{
ShowAd ();
}
i++;
}
public void ShowAd()
{
if (Advertisement.IsReady())
{
Advertisement.Show();
}
}