Пример #1
0
    public void Show()
    {
        if (!Advertisement.IsReady())
        {
            return;
        }

        Advertisement.Show();

        // exeeded max resurection ad count
        if (type == AdType.RESUME_AD && AdManager.CantShowAnotherResumeAd())
        {
            var button = transform.gameObject.GetComponent <Button>();
            button.interactable = false;
        }
    }
Пример #2
0
    public void Show()
    {
        if (!Advertisement.IsReady())
        {
            return;
        }

        Advertisement.Show();

        // exeeded max resurection ad count
        if (type == AdType.RESUME_AD && AdManager.CantShowAnotherResumeAd())
        {
            transform.gameObject.SetActive(false);
            return;
        }
    }