示例#1
0
    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");
    }
示例#2
0
 // 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");
 }