update core

This commit is contained in:
2023-01-28 17:47:11 +08:00
parent f5c3653527
commit 76ce5fe79a
4 changed files with 21 additions and 4 deletions

View File

@@ -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