i get the debug.log printed to console but it isn’t showing anything on screen
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Advertisements;
public class AdsController : MonoBehaviour
{
string playstoreID = "3403842";
string videoAd = "video";
bool testMode = true;
[SerializeField] LivesManager deathCounter;
// Start is called before the first frame update
void Start()
{
deathCounter = FindObjectOfType<LivesManager>();
Advertisement.Initialize(playstoreID, testMode);
}
// Update is called once per frame
void Update()
{
InitializeMonetization();
}
public void InitializeMonetization()
{
if (deathCounter.deathCounter == 3)
{
PlayAd();
}
}
public void PlayAd()
{
Debug.Log("ad");
Advertisement.Show("video");
deathCounter.deathCounter = 0;
}
}