Пример #1
0
    void Start()
    {
        if (true == _isInit)
        {
            return;
        }

        InitialAdManager();

        _adManager.Init();
        _videoAd = _adManager.GetRewardedAd(TEST_ZONE_NAME);
        _isInit  = true;
    }
Пример #2
0
    public void Init(IAdManager provider)
    {
        if (CheckInit())
        {
            Debug.LogError("AdFactory is Inited Return");
            return;
        }

        if (provider == null)
        {
            Debug.LogError("AdFactory provider is null, Return");
            return;
        }

        Debug.LogWarning("Init AdFactory with " + provider);

        adManager = provider;
        adManager.Init();
    }