I just want to make this; if an ad is ready to show than user should be available to click this button but this code doesn't make that happen. Please share your knowledge
void Start()
{
points.text="Points: "+PlayerPrefs.GetInt("ScoreCmon").ToString();
if (UnityEngine.Advertisements.Advertisement.IsReady()==false)
{
watchbutton[0].interactable = false;
watchbutton[0].image.color = Color.red;
}
}
↧