You've already forked CC-Framework.Commercialization
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4a813fa481 | |||
| e154b3ef17 | |||
| bb0939fd98 |
@@ -48,15 +48,20 @@ namespace Runtime.ADAggregator
|
||||
|
||||
private AsyncAdPlayer _curAsyncPlayer;
|
||||
|
||||
private string _userId;
|
||||
|
||||
public string UserId => _userId;
|
||||
|
||||
#pragma warning disable CS0414
|
||||
private bool _isInit = false;
|
||||
#pragma warning restore CS0414
|
||||
|
||||
public void Init(Action onCallback , ADConfig adConfig , IAdController controller , params object[] args)
|
||||
public void Init(Action onCallback , string userId, ADConfig adConfig , IAdController controller , params object[] args)
|
||||
{
|
||||
_isInit = true;
|
||||
_instance.name = "[GameUpdater] <color=green>Init<color>";
|
||||
AD_Dicts = new Dictionary<AD_Type, ADPlayer>();
|
||||
_userId = userId;
|
||||
#if UNITY_EDITOR
|
||||
onCallback?.Invoke();
|
||||
#else
|
||||
|
||||
@@ -30,7 +30,12 @@ namespace Runtime.ADAggregator
|
||||
}
|
||||
|
||||
public abstract void ShowAD(Action onClose, Action<bool> onVideoComplete);
|
||||
public abstract bool IsReadly();
|
||||
|
||||
public virtual bool IsReadly()
|
||||
{
|
||||
return this.curState == 2;
|
||||
}
|
||||
|
||||
public abstract void LoadAD();
|
||||
|
||||
public virtual void OnInit()
|
||||
@@ -43,5 +48,12 @@ namespace Runtime.ADAggregator
|
||||
public virtual void CloseAD()
|
||||
{
|
||||
}
|
||||
|
||||
public void OnError(object code, string message)
|
||||
{
|
||||
this.OnErrorAction?.Invoke();
|
||||
this.OnErrorAction = null;
|
||||
curState = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 131a6b21c8605f84396be9f6751fb6e3
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "com.foldcc.cc-framework.commercialization",
|
||||
"displayName": "CC-Framework.commercialization",
|
||||
"description": "商业化sdk通用组件,包含广告、内购、用户统计、归因统计等",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.3",
|
||||
"unity": "2021.1",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
|
||||
Reference in New Issue
Block a user