修改改变登录方式按钮的无需点击上升bug
This commit is contained in:
parent
c2de8bb082
commit
2a64f2c02c
@ -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;
|
||||
}
|
||||
|
||||
// ·þÎñÆ÷·µ»ØµÄÊý¾Ý½á¹¹
|
||||
|
Loading…
Reference in New Issue
Block a user