From 22d482183aa44aa2ffd837d8939a7b0bd15d28b9 Mon Sep 17 00:00:00 2001
From: liuzhiwei <liuzhiwei@qq.com>
Date: Thu, 29 Oct 2020 10:45:21 +0800
Subject: [PATCH] Merge branch 'master' of http://172.16.1.52:8090/r/GemBattle into master

---
 Assets/Scripts/GameAnalytics_SDK/UI/LoginUI.cs |   25 ++++++++++++++++---------
 1 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/Assets/Scripts/GameAnalytics_SDK/UI/LoginUI.cs b/Assets/Scripts/GameAnalytics_SDK/UI/LoginUI.cs
index 5a0c4af..12002f7 100644
--- a/Assets/Scripts/GameAnalytics_SDK/UI/LoginUI.cs
+++ b/Assets/Scripts/GameAnalytics_SDK/UI/LoginUI.cs
@@ -18,16 +18,17 @@
     // Start is called before the first frame update
     void Start()
     {
-        GA_SDK_Manager.Ins.SDKInit(ChannelID.Gm.ToString());
-        GA_SDK_Manager.Ins.Statistics(1);//成功加载登陆界面的人数
+        TDAA_SDKManager.Ins.SDKInit(ChannelID.Gm.ToString());
+        TDAA_SDKManager.Ins.Statistics(1);//成功加载登陆界面的人数
         isLogining = false;
 
         transform.Find("Panel/Button").GetComponent<Button>().onClick.AddListener(OnClickLoginBtn);
+        transform.Find("Panel/Button (1)").GetComponent<Button>().onClick.AddListener(OnClickResetBtn);
 
         if (Application.platform == RuntimePlatform.Android)
         {
             //GetetDeviceIMEI();//获取安卓手机IMEI
-            imei0 = GA_SDK_Manager.Ins.GetDeviceId();//使用设备ID
+            imei0 = TDAA_SDKManager.Ins.GetDeviceId();//使用设备ID
         }
         else if (Application.platform == RuntimePlatform.WindowsEditor)
         {
@@ -69,11 +70,17 @@
 
     #endregion
 
+    private void OnClickResetBtn(){
+        Debug.LogError("清空了所有数据");
+        PlayerPrefs.DeleteAll();
+        TDAA_SDKManager.Ins.Reset();
+    }
+
+
     private void OnClickLoginBtn()
     {
+        TDAA_SDKManager.Ins.Statistics(2);//埋点
         LoginRequest();
-        GA_SDK_Manager.Ins.Statistics(2);//埋点
-
     }
 
     /// <summary>
@@ -89,8 +96,8 @@
             {
                 Debug.Log("编辑器直接登录");
 
-                GA_SDK_Manager.Ins.Login(imei0);
-                GA_SDK_Manager.Ins.Statistics(3);//埋点
+                //TDAA_SDKManager.Ins.Login();
+                TDAA_SDKManager.Ins.Statistics(3);//埋点
 
                 //StartCoroutine(loginMy());
                 StartCoroutine(LoadScene());
@@ -180,8 +187,8 @@
             Debug.Log("--------------------- 登录成功 ---------------------");
             //UserDataMsg userData = login.Userdata;
 
-            GA_SDK_Manager.Ins.Login(imei0);
-            GA_SDK_Manager.Ins.Statistics(3);//埋点
+            //TDAA_SDKManager.Ins.Login();
+            TDAA_SDKManager.Ins.Statistics(3);//埋点
 
             //StartCoroutine(loginMy());
             StartCoroutine(LoadScene());

--
Gitblit v1.9.1