From c8464a4e95f938f0c8f587606c224dc88bae8231 Mon Sep 17 00:00:00 2001 From: wangguan <wangguan@kt007.com> Date: Tue, 03 Nov 2020 15:49:29 +0800 Subject: [PATCH] 结算页面Item出现频率 --- Assets/Scripts/GameAnalytics_SDK/UI/LoginUI.cs | 36 +++++++++++++++++++++++++++--------- 1 files changed, 27 insertions(+), 9 deletions(-) diff --git a/Assets/Scripts/GameAnalytics_SDK/UI/LoginUI.cs b/Assets/Scripts/GameAnalytics_SDK/UI/LoginUI.cs index 5a0c4af..7d4c3f0 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,28 @@ #endregion + private void OnClickResetBtn() + { + Debug.LogError("清空了所有数据"); + PlayerPrefs.DeleteAll(); + TDAA_SDKManager.Ins.Reset(); + } + + private void OnClickLoginBtn() { - LoginRequest(); - GA_SDK_Manager.Ins.Statistics(2);//埋点 + if (!isLogining) + { + TDAA_SDKManager.Ins.Statistics(2);//埋点 + //StartCoroutine(loginMy()); + StartCoroutine(LoadScene()); + }else{ + + } + + //TDAA_SDKManager.Ins.Statistics(2);//埋点 + //LoginRequest(); } /// <summary> @@ -89,8 +107,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 +198,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