public void ToShow(bool direct = false) { if (direct) { ADManager.ShowInterstitialAD(this.percent); } else { adShowed = false; } }
public void Update() { if (!adShowed) { adTimer += Time.deltaTime; if (adTimer > delay) { ADManager.ShowInterstitialAD(this.percent); adShowed = true; } } }