赞
踩
直接上代码:
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- using UniRx;
- using System;
- using System.IO;
- using System.Text;
- using System.Globalization;
- public class RegisterPanel : MonoBehaviour
- {
- private LoginUIPanel mLoginUIPanel;
- StreamWriter writer;
- StreamReader reader;
- //本地存储手机号
- private string set_phonenum;
- //同一个手机号码使用次数
- private int useNum=1;
- FileInfo file;
- private Button btn_GetMsgCode;
- /**倒计时 */
- private Text txt_CountDownTimer;
-
-
- }
- private void Awake()
- {
- //获取验证码按钮
- btn_GetMsgCode = input_MsgCode.transform.Find("Btn_GetVerficationCode").GetComponent<Button>();
- btn_GetMsgCode.onClick.AddListener(OnGetMsgCodeClick);
- txt_CountDownTimer = btn_GetMsgCode.transform.Find("Text").GetComponent<Text>();
-
- }
- private void OnEnable()
- {
-
- ResetGetMsgCode();
- }
- /**
- * 获取验证码
- */
- private void OnGetMsgCodeClick()
- {
-
- if (!mLoginUIPanel.CheckGetMsgCode(input_Account.text))
- {
- Debug.Log("没有输入");
- return;
- }
-
- se

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。