2 Commits
1.0.7 ... 1.0.9

Author SHA1 Message Date
b53846c98f update core 2023-09-14 14:23:12 +08:00
89f5f66322 update core 2023-09-14 14:21:41 +08:00
4 changed files with 16 additions and 12 deletions

View File

@@ -163,7 +163,7 @@ namespace Runtime.ADAggregator
} }
var player = AD_Dicts[adType]; var player = AD_Dicts[adType];
_curAsyncPlayer = new AsyncAdPlayer(player, callback); _curAsyncPlayer = new AsyncAdPlayer(player,adScene , callback);
} }
catch (Exception e) catch (Exception e)
{ {

View File

@@ -10,6 +10,7 @@ namespace Runtime.ADAggregator
protected int curState; protected int curState;
public string Key; public string Key;
public string AdScene;
protected ADListener adListener; protected ADListener adListener;
public Action OnErrorAction; public Action OnErrorAction;

View File

@@ -5,21 +5,23 @@ namespace Runtime.ADAggregator
{ {
public class AsyncAdPlayer public class AsyncAdPlayer
{ {
private Action<bool> _callback; private Action<bool> _callback;
private ADPlayer _adPlayer; private ADPlayer _adPlayer;
private bool firstLoad; private bool firstLoad;
private bool isKill; private bool isKill;
private bool isUpdate; private bool isUpdate;
private AdTimeHandler overHandler; private AdTimeHandler overHandler;
private string _Ad_scene;
private float _outTime; 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._callback = callback;
this.isKill = false; this.isKill = false;
this.firstLoad = true; this.firstLoad = true;
this._adPlayer = player; this._adPlayer = player;
if (_adPlayer == null) if (_adPlayer == null)
@@ -33,7 +35,8 @@ namespace Runtime.ADAggregator
} }
ADManager.Instance.OpenMask(); ADManager.Instance.OpenMask();
_adPlayer.OnErrorAction = OnError; _adPlayer.OnErrorAction = OnError;
isUpdate = true; _adPlayer.AdScene = this._Ad_scene;
isUpdate = true;
ADManager.Instance.AddUpdater(DoUpdate); ADManager.Instance.AddUpdater(DoUpdate);
} }

View File

@@ -2,7 +2,7 @@
"name": "com.foldcc.cc-framework.commercialization", "name": "com.foldcc.cc-framework.commercialization",
"displayName": "CC-Framework.commercialization", "displayName": "CC-Framework.commercialization",
"description": "商业化sdk通用组件包含广告、内购、用户统计、归因统计等", "description": "商业化sdk通用组件包含广告、内购、用户统计、归因统计等",
"version": "1.0.7", "version": "1.0.9",
"unity": "2021.1", "unity": "2021.1",
"license": "MIT", "license": "MIT",
"repository": { "repository": {