diff --git a/Runtime/Code/SDK/GuruSDK.Analytics.cs b/Runtime/Code/SDK/GuruSDK.Analytics.cs index 435185f..287d092 100644 --- a/Runtime/Code/SDK/GuruSDK.Analytics.cs +++ b/Runtime/Code/SDK/GuruSDK.Analytics.cs @@ -39,11 +39,11 @@ namespace Guru /// public static void LogEvent(string eventName, Dictionary data = null, int priority = -1) { - if (!IsInitialSuccess) - { - UnityEngine.Debug.LogError($"{Tag} :: LogEvent {eventName} :: Please call first, before you call ."); - return; - } + // if (!IsInitialSuccess) + // { + // UnityEngine.Debug.LogError($"{Tag} :: LogEvent {eventName} :: Please call first, before you call ."); + // return; + // } if(priority < 0) priority = GetEventPriorityInt(eventName); diff --git a/Runtime/Code/SDK/GuruSDK.cs b/Runtime/Code/SDK/GuruSDK.cs index ab8f4d5..35a405f 100644 --- a/Runtime/Code/SDK/GuruSDK.cs +++ b/Runtime/Code/SDK/GuruSDK.cs @@ -165,7 +165,7 @@ namespace Guru FirebaseUtil.onInitComplete += OnFirebaseReady; FirebaseUtil.OnUserAuthResult += OnUserAuthResult; FirebaseUtil.OnFirebaseAuthResult += OnFirebaseAuthResult; - FirebaseUtil.InitFirebase(null); // 确保所有的逻辑提前被调用到 + FirebaseUtil.InitFirebase(null); // 确保所有的逻辑提前被调用到 + Analytics.Init TODO:之后需要改为事件驱动 LogI($"#2.1 --- InitFacebook ---"); //---------- Start Facebook ------------ @@ -209,7 +209,7 @@ namespace Guru private void OnFirebaseReady(bool success) { FirebaseUtil.onInitComplete -= OnFirebaseReady; - LogI($"#3 --- On FirebaseDeps:{success} ---"); + LogI($"#3 --- On FirebaseDeps: {success} ---"); IsFirebaseReady = success; Callbacks.SDK._onFirebaseReady?.Invoke(success); // LogFirebaseDeps(success);