I keep getting the same add
I keep getting the same add.I probably did so`enter code here`mething wrong in my code her it is:
using UnityEngine;
using UnityEngine.Advertisements;
public class wtf : MonoBehaviour
{
public int test1;
public int test2;
public int counter;
public int ran;
public int add;
Random numberGenerator = new Random ();
void Start(){
add=PlayerPrefs.GetInt ("add_count")+1;
PlayerPrefs.SetInt ("add_count",add);
}
public void ShowAd()
{
}
void Update(){
test1 = PlayerPrefs.GetInt ("add_count");
if (PlayerPrefs.GetInt ("add_count") == 5) {
test2++;
PlayerPrefs.SetInt ("add_count",0);
add = 0;
Advertisement.Show ();
}
}
}
Hope someone can help me out
Comment
Your answer
Follow this Question
Related Questions
unity add not show on mobile why? 0 Answers
Unity Ads don't seem to be working on my app 0 Answers
How to delete ad placement in Placement dashboard? 1 Answer
Unity Ads: Why is my banner placement on my dashboard disabled? 0 Answers
Unity Ads Operate dashboard - AD delivery disabled and can't enable anymore!... 0 Answers