| | |
| | | |
| | | public class LoginUI : MonoBehaviour |
| | | { |
| | | private AsyncOperation async = null; |
| | | bool isLogining; |
| | | private JsonData loginData; |
| | | |
| | |
| | | // Start is called before the first frame update |
| | | void Start() |
| | | { |
| | | |
| | | EventCenter.Ins.RemoveAllListener(); |
| | | |
| | | isLogining = false; |
| | | |
| | |
| | | startBtn.onClick.AddListener(OnClickLoginBtn); |
| | | startBtn.gameObject.SetActive(true); |
| | | |
| | | repairBtn.onClick.AddListener(() => |
| | | { |
| | | OnClickResetBtn(); |
| | | }); |
| | | |
| | | //transform.Find("Panel/Button (1)").GetComponent<Button>().onClick.AddListener(OnClickResetBtn); |
| | | |
| | | if (Application.platform == RuntimePlatform.Android) |
| | |
| | | { |
| | | imei0 = "MyTestGemBattle123"; |
| | | } |
| | | |
| | | versionTxt.text = "版本号:" + Application.version; |
| | | //resVersion.text 暂时没有使用 |
| | | transform.Find("Panel/PlayerID").GetComponent<Text>().text = "玩家ID:" + imei0; |
| | | |
| | | |
| | | if (!GameConfig.isFirstStart)//后续直接加载 |
| | |
| | | { |
| | | int displayProgress = 0; |
| | | int toProgress = 0; |
| | | AsyncOperation op = SceneManager.LoadSceneAsync(GameConfig.NextSceneName); |
| | | AsyncOperation op = SceneManager.LoadSceneAsync("Endless2D"); |
| | | // AsyncOperation op = SceneManager.LoadSceneAsync(GameConfig.NextSceneName); |
| | | op.allowSceneActivation = false; |
| | | while (op.progress < 0.9f) //此处如果是 <= 0.9f 则会出现死循环所以必须小0.9 |
| | | { |