From 52b368f37a5ed8da905b51cee920986f07aefb0e Mon Sep 17 00:00:00 2001 From: oldpeper <96619050+oldpeper@users.noreply.github.com> Date: Fri, 20 Dec 2024 18:19:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=BF=E5=91=8A=E5=9F=8B=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- box1/Assets/Script/AdMgr.cs | 6 ++++++ box1/Assets/Script/GameManager.cs | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/box1/Assets/Script/AdMgr.cs b/box1/Assets/Script/AdMgr.cs index 2caaf5f5..f270fb63 100644 --- a/box1/Assets/Script/AdMgr.cs +++ b/box1/Assets/Script/AdMgr.cs @@ -1,4 +1,5 @@ using TTSDK; +using TTSDK.UNBridgeLib.LitJson; using UnityEngine; /// @@ -43,6 +44,11 @@ public class AdMgr : MonoBehaviour if (isClose) { + //广告数据ROI + TT.SendToTAQ(new JsonData + { + ["event_type"] = "lt_roi" + }); if (callback != null) { callback(args); diff --git a/box1/Assets/Script/GameManager.cs b/box1/Assets/Script/GameManager.cs index 6a549ce0..06959e3d 100644 --- a/box1/Assets/Script/GameManager.cs +++ b/box1/Assets/Script/GameManager.cs @@ -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()