public void OnUnityButtonClick() { myAdManager.currentType = AdManager.AdvertisementType.Unity; myAdManager.DisplayBanner(); Button myButton = getButton("Unity-Button"); Button otherButton = getButton("Admob-Button"); myButton.interactable = false; otherButton.interactable = true; EnableButton("Admob-Button"); DisableButton("Unity-Button"); }
// Start is called before the first frame update void Start() { myCameraManager = gameObject.GetComponent <CameraManager>(); myShopManager = gameObject.GetComponent <ShopManager>(); myAdManager = gameObject.AddComponent <AdManager>(); myAdManager.currentType = AdManager.AdvertisementType.Unity; myAdManager.DisplayBanner(); DisableButton("Unity-Button"); }