Esempio n. 1
0
 public void OnAvailabilityChange(bool availability, string zoneId)
 {
     if (ADCAdManager.GetZoneIdByKey(zoneIdKey) == zoneId)
     {
         UpdateReadyTexture(availability);
     }
 }
    // Update is called once per frame
    void Update()
    {
        // currencyText.text = ("Credits: " + ADCAdManager.GetRegularCurrencyAmount());
        PlayVideoZoneButton playVideoZoneButton = currencyButton.GetComponent <PlayVideoZoneButton>();

        currencyText.text = (AdColony.GetV4VCName(ADCAdManager.GetZoneIdByKey(playVideoZoneButton.zoneIdKey)) + ": " + ADCAdManager.GetRegularCurrencyAmount());
    }
Esempio n. 3
0
    // Use this for initialization
    public override void Start()
    {
        base.Start();
        zoneId = ADCAdManager.GetZoneIdByKey(zoneIdKey);
        ADCAdManager.AddOnAdAvailabilityChangeMethod(OnAvailabilityChange);

        UpdateReadyTexture(AdColony.IsVideoAvailable(zoneId));
    }