From 2a64f2c02cee11ca43c14fb6b486295e6d14b2ef Mon Sep 17 00:00:00 2001 From: huyulong <1838407198@qq.com> Date: Sat, 16 Nov 2024 16:06:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=94=B9=E5=8F=98=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=96=B9=E5=BC=8F=E6=8C=89=E9=92=AE=E7=9A=84=E6=97=A0?= =?UTF-8?q?=E9=9C=80=E7=82=B9=E5=87=BB=E4=B8=8A=E5=8D=87bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Scripts/Login/UI/logoPanel.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/TheStrongestSnail/Assets/Scripts/Login/UI/logoPanel.cs b/TheStrongestSnail/Assets/Scripts/Login/UI/logoPanel.cs index a4d75f7..37b797d 100644 --- a/TheStrongestSnail/Assets/Scripts/Login/UI/logoPanel.cs +++ b/TheStrongestSnail/Assets/Scripts/Login/UI/logoPanel.cs @@ -39,6 +39,9 @@ public class logoPanel : MonoBehaviour public delegate void TokenReceivedDelegate(string token); public static event TokenReceivedDelegate OnTokenReceived; + private bool isOpenYzm = true; + private bool isOpenPwd = false; + void Start() { yzmBtn.onClick.AddListener(OnClickYzmBtn); @@ -120,18 +123,30 @@ public class logoPanel : MonoBehaviour private void OnClickYzmBtn() { + if(isOpenYzm) + { + return; + } pwdBtn.transform.position -= new Vector3(0f, 26.4f, 0f); yzmBtn.transform.position += new Vector3(0f, 26.4f, 0f); yzm.gameObject.SetActive(true); mm.gameObject.SetActive(false); + isOpenYzm = true; + isOpenPwd = false; } private void OnClickPwdBtn() { + if (isOpenPwd) + { + return; + } pwdBtn.transform.position += new Vector3(0f, 26.4f, 0f); yzmBtn.transform.position -= new Vector3(0f, 26.4f, 0f); yzm.gameObject.SetActive(false); mm.gameObject.SetActive(true); + isOpenPwd = true; + isOpenYzm = false; } // 服务器返回的数据结构