void Start() { if (true == _isInit) { return; } InitialAdManager(); _adManager.Init(); _videoAd = _adManager.GetRewardedAd(TEST_ZONE_NAME); _isInit = true; }
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(); }