You've already forked CC-Framework.Commercialization
update core
This commit is contained in:
@@ -58,10 +58,12 @@ namespace Runtime.ADAggregator
|
||||
if (!isUpdate)
|
||||
return;
|
||||
_outTime += Time.deltaTime;
|
||||
var callback = _callback;
|
||||
if (this._outTime >= 15)
|
||||
{
|
||||
_callback?.Invoke(false);
|
||||
callback?.Invoke(false);
|
||||
Kill();
|
||||
return;
|
||||
}
|
||||
if (_adPlayer.IsReadly())
|
||||
{
|
||||
@@ -69,7 +71,10 @@ namespace Runtime.ADAggregator
|
||||
Debug.LogError("开始播放广告: " + this._adPlayer.Key);
|
||||
#endif
|
||||
_adPlayer.ShowAD(OnCloseAD, OnComplete);
|
||||
ADManager.Instance.CloseMask();
|
||||
if (_adPlayer.ADType != AD_Type.AwardVideo)
|
||||
{
|
||||
ADManager.Instance.CloseMask();
|
||||
}
|
||||
isUpdate = false;
|
||||
ADManager.Instance.RemoveUpdater(DoUpdate);
|
||||
}
|
||||
@@ -86,7 +91,7 @@ namespace Runtime.ADAggregator
|
||||
}
|
||||
else
|
||||
{
|
||||
_callback?.Invoke(false);
|
||||
callback?.Invoke(false);
|
||||
Kill();
|
||||
}
|
||||
}
|
||||
@@ -112,6 +117,7 @@ namespace Runtime.ADAggregator
|
||||
this.overHandler?.Kill();
|
||||
this.overHandler = ADManager.Instance.CreateTimer(0.05f, () =>
|
||||
{
|
||||
ADManager.Instance.OnVideoComplete(obj);
|
||||
_callback?.Invoke(obj);
|
||||
Clear();
|
||||
});
|
||||
@@ -122,13 +128,13 @@ namespace Runtime.ADAggregator
|
||||
{
|
||||
if (isKill)
|
||||
return;
|
||||
ADManager.Instance.CloseMask();
|
||||
ADManager.Instance.RemoveUpdater(DoUpdate);
|
||||
Clear();
|
||||
}
|
||||
|
||||
private void Clear()
|
||||
{
|
||||
ADManager.Instance.CloseMask();
|
||||
isKill = true;
|
||||
_callback = null;
|
||||
_adPlayer = null;
|
||||
|
||||
Reference in New Issue
Block a user