update: 取消初始化锁限制
							parent
							
								
									68e90a4ed9
								
							
						
					
					
						commit
						d51759bbd1
					
				| 
						 | 
					@ -39,11 +39,11 @@ namespace Guru
 | 
				
			||||||
        /// <param name="priority"></param>
 | 
					        /// <param name="priority"></param>
 | 
				
			||||||
        public static void LogEvent(string eventName, Dictionary<string, dynamic> data = null, int priority = -1)
 | 
					        public static void LogEvent(string eventName, Dictionary<string, dynamic> data = null, int priority = -1)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            if (!IsInitialSuccess)
 | 
					            // if (!IsInitialSuccess)
 | 
				
			||||||
            {
 | 
					            // {
 | 
				
			||||||
                UnityEngine.Debug.LogError($"{Tag} :: LogEvent {eventName} :: Please call <GuruSDK.Start()> first, before you call <LogEvent>.");
 | 
					            //     UnityEngine.Debug.LogError($"{Tag} :: LogEvent {eventName} :: Please call <GuruSDK.Start()> first, before you call <LogEvent>.");
 | 
				
			||||||
                return;
 | 
					            //     return;
 | 
				
			||||||
            }
 | 
					            // }
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
            if(priority < 0) priority = GetEventPriorityInt(eventName);
 | 
					            if(priority < 0) priority = GetEventPriorityInt(eventName);
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -165,7 +165,7 @@ namespace Guru
 | 
				
			||||||
            FirebaseUtil.onInitComplete += OnFirebaseReady;
 | 
					            FirebaseUtil.onInitComplete += OnFirebaseReady;
 | 
				
			||||||
            FirebaseUtil.OnUserAuthResult += OnUserAuthResult;
 | 
					            FirebaseUtil.OnUserAuthResult += OnUserAuthResult;
 | 
				
			||||||
            FirebaseUtil.OnFirebaseAuthResult += OnFirebaseAuthResult;
 | 
					            FirebaseUtil.OnFirebaseAuthResult += OnFirebaseAuthResult;
 | 
				
			||||||
            FirebaseUtil.InitFirebase(null); // 确保所有的逻辑提前被调用到
 | 
					            FirebaseUtil.InitFirebase(null); // 确保所有的逻辑提前被调用到 + Analytics.Init TODO:之后需要改为事件驱动
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
            LogI($"#2.1 --- InitFacebook ---");
 | 
					            LogI($"#2.1 --- InitFacebook ---");
 | 
				
			||||||
            //---------- Start Facebook ------------
 | 
					            //---------- Start Facebook ------------
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue