SDK_UnityMoney/Assets/Script/SDKManager/ShuShuMangage/ShuShuMangage.cs

25 lines
878 B
C#
Raw Normal View History

using System;
2025-08-30 09:38:53 +00:00
using System.Collections;
using System.Collections.Generic;
2025-09-03 03:45:52 +00:00
using AdjustSdk;
2025-08-30 09:38:53 +00:00
using ThinkingData.Analytics;
using UnityEngine;
2025-09-01 10:32:50 +00:00
namespace WZ
2025-08-30 09:38:53 +00:00
{
2025-09-02 09:14:49 +00:00
public class ShuShuMangage : D_MonoSingleton<ShuShuMangage>
2025-08-30 09:38:53 +00:00
{
2025-09-01 10:32:50 +00:00
public void Init()
{
2025-09-03 03:45:52 +00:00
LoggerUtils.Debug("ShuShuMangage Init" + StaticValue.TDAppID + " serverURL" + StaticValue.TDServerURL);
2025-09-01 10:32:50 +00:00
// 初始化SDK
2025-09-02 09:50:19 +00:00
TDAnalytics.Init(StaticValue.TDAppID, StaticValue.TDServerURL);
2025-09-01 10:32:50 +00:00
//开启自动采集事件
TDAnalytics.EnableAutoTrack(TDAutoTrackEventType.AppInstall | TDAutoTrackEventType.AppStart | TDAutoTrackEventType.AppEnd);
ShuShuEvent.Instance.UserSet(new Dictionary<string, object>
{
{ "register_timestamp", DateTimeOffset.UtcNow.ToUnixTimeSeconds() }
},true);
2025-09-01 10:32:50 +00:00
}
}
}