Hi guys I'm using this script: `using UnityEngine;
using System.Collections;
using UnityEngine.Advertisements;
public class Ads : MonoBehaviour
{
void Start()
{
Advertisement.Initialize("33675", true);
StartCoroutine(ShowAdWhenReady());
}
IEnumerator ShowAdWhenReady()
{
while (!Advertisement.Sh())
yield return null;
Advertisement.Show();
}
}`
and the console says: Assets/Scripts/Ads.cs(9,3): error CS0433: The imported type `UnityEngine.Advertisements.Advertisement' is defined multiple times
and : Assets/Scripts/Ads.cs(16,25): error CS0117: `UnityEngine.Advertisements.Advertisement' does not contain a definition for `Sh'
I've got the asset but i don't know what i should do with it. Pls help!
↧