广告埋点

This commit is contained in:
oldpeper 2024-12-20 18:19:39 +08:00
parent e63e16aad5
commit 52b368f37a
2 changed files with 16 additions and 0 deletions

View File

@ -1,4 +1,5 @@
using TTSDK;
using TTSDK.UNBridgeLib.LitJson;
using UnityEngine;
/// <summary>
@ -43,6 +44,11 @@ public class AdMgr : MonoBehaviour
if (isClose)
{
//广告数据ROI
TT.SendToTAQ(new JsonData
{
["event_type"] = "lt_roi"
});
if (callback != null)
{
callback(args);

View File

@ -4,6 +4,7 @@ using System.Collections.Generic;
using System.Linq;
using cfg;
using TTSDK;
using TTSDK.UNBridgeLib.LitJson;
// using Unity.VisualScripting;
using UnityEngine;
using Random = UnityEngine.Random;
@ -85,6 +86,15 @@ public class GameManager : MonoBehaviour
DotData.ins.SendEvent("10101","");
MainPanel.ins.ClosePanelEvent();
});
TT.SendToTAQ(new JsonData
{
["event_type"] = "active"
});
TT.SendToTAQ(new JsonData
{
["event_type"] = "next_day_open"
});
}
private void Start()