You've already forked CC-Framework.Commercialization
update core
This commit is contained in:
@@ -5,21 +5,23 @@ namespace Runtime.ADAggregator
|
||||
{
|
||||
public class AsyncAdPlayer
|
||||
{
|
||||
private Action<bool> _callback;
|
||||
private ADPlayer _adPlayer;
|
||||
private bool firstLoad;
|
||||
private bool isKill;
|
||||
private bool isUpdate;
|
||||
private Action<bool> _callback;
|
||||
private ADPlayer _adPlayer;
|
||||
private bool firstLoad;
|
||||
private bool isKill;
|
||||
private bool isUpdate;
|
||||
private AdTimeHandler overHandler;
|
||||
private string _Ad_scene;
|
||||
|
||||
private float _outTime;
|
||||
|
||||
public AsyncAdPlayer(ADPlayer player , Action<bool> callback)
|
||||
public AsyncAdPlayer(ADPlayer player , string adScene, Action<bool> callback)
|
||||
{
|
||||
|
||||
this._outTime = 0;
|
||||
|
||||
this._Ad_scene = adScene;
|
||||
this._outTime = 0;
|
||||
this._callback = callback;
|
||||
this.isKill = false;
|
||||
this.isKill = false;
|
||||
this.firstLoad = true;
|
||||
this._adPlayer = player;
|
||||
if (_adPlayer == null)
|
||||
@@ -33,7 +35,8 @@ namespace Runtime.ADAggregator
|
||||
}
|
||||
ADManager.Instance.OpenMask();
|
||||
_adPlayer.OnErrorAction = OnError;
|
||||
isUpdate = true;
|
||||
_adPlayer.AdScene = this._Ad_scene;
|
||||
isUpdate = true;
|
||||
ADManager.Instance.AddUpdater(DoUpdate);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user