You've already forked CC-Framework.Commercialization
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 377a279ac3 |
@@ -56,6 +56,11 @@ namespace Runtime.ADAggregator
|
||||
/// </summary>
|
||||
public event Action<bool> GLOBAL_ShowAwardVideoComplete;
|
||||
|
||||
/// <summary>
|
||||
/// 全局任意视频广告玩家点击播放时
|
||||
/// </summary>
|
||||
public event Action<string , string> GLOBAL_ShowAwardVideoBefore;
|
||||
|
||||
public string UserId => _userId;
|
||||
|
||||
#pragma warning disable CS0414
|
||||
@@ -140,11 +145,13 @@ namespace Runtime.ADAggregator
|
||||
/// <param name="callback"></param>
|
||||
public void AsyncPlayAD(AD_Type adType, string adScene, Action<bool> callback)
|
||||
{
|
||||
|
||||
#if UNITY_EDITOR
|
||||
if (adType == AD_Type.AwardVideo)
|
||||
{
|
||||
this.OnVideoComplete(true);
|
||||
}
|
||||
|
||||
callback?.Invoke(true);
|
||||
return;
|
||||
#endif
|
||||
@@ -153,6 +160,7 @@ namespace Runtime.ADAggregator
|
||||
callback?.Invoke(true);
|
||||
return;
|
||||
}
|
||||
|
||||
_adController.EventLog("adScene", adScene);
|
||||
try
|
||||
{
|
||||
@@ -163,7 +171,9 @@ namespace Runtime.ADAggregator
|
||||
}
|
||||
|
||||
var player = AD_Dicts[adType];
|
||||
_curAsyncPlayer = new AsyncAdPlayer(player,adScene , callback);
|
||||
if (adType == AD_Type.AwardVideo)
|
||||
GLOBAL_ShowAwardVideoBefore?.Invoke(player.Key , adScene);
|
||||
_curAsyncPlayer = new AsyncAdPlayer(player, adScene, callback);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "com.foldcc.cc-framework.commercialization",
|
||||
"displayName": "CC-Framework.commercialization",
|
||||
"description": "商业化sdk通用组件,包含广告、内购、用户统计、归因统计等",
|
||||
"version": "1.0.9",
|
||||
"version": "1.0.11",
|
||||
"unity": "2021.1",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
|
||||
Reference in New Issue
Block a user