| 
									
										
										
										
											2025-08-30 09:38:53 +00:00
										 |  |  |  | using System.Collections; | 
					
						
							|  |  |  |  | using System.Collections.Generic; | 
					
						
							| 
									
										
										
										
											2025-08-31 03:55:05 +00:00
										 |  |  |  | using SDK.Utils; | 
					
						
							| 
									
										
										
										
											2025-08-30 09:38:53 +00:00
										 |  |  |  | using ThinkingData.Analytics; | 
					
						
							|  |  |  |  | using UnityEngine; | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-31 03:55:05 +00:00
										 |  |  |  | public class ShuShuMangage :  NormalSingleton<ShuShuMangage> | 
					
						
							| 
									
										
										
										
											2025-08-30 09:38:53 +00:00
										 |  |  |  | { | 
					
						
							|  |  |  |  |     private const string appid = "80f6819a81c743cbad667ecf242f3133"; | 
					
						
							| 
									
										
										
										
											2025-08-30 11:16:32 +00:00
										 |  |  |  |     private const string server = "https://global-receiver-ta.thinkingdata.cn"; | 
					
						
							| 
									
										
										
										
											2025-08-30 09:38:53 +00:00
										 |  |  |  |      | 
					
						
							| 
									
										
										
										
											2025-08-31 04:40:36 +00:00
										 |  |  |  |     public void Init() | 
					
						
							| 
									
										
										
										
											2025-08-30 09:38:53 +00:00
										 |  |  |  |     { | 
					
						
							|  |  |  |  |         // 初始化SDK | 
					
						
							|  |  |  |  |         TDAnalytics.Init(appid, server); | 
					
						
							|  |  |  |  |         //开启自动采集事件 | 
					
						
							|  |  |  |  |         TDAnalytics.EnableAutoTrack(TDAutoTrackEventType.AppInstall | TDAutoTrackEventType.AppStart | TDAutoTrackEventType.AppEnd); | 
					
						
							|  |  |  |  |         //如果用户已登录,可以设置用户的账号ID作为身份唯一标识 | 
					
						
							|  |  |  |  |         TDAnalytics.Login("TA"); | 
					
						
							|  |  |  |  |     } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | } |