protected override void _Init() { // 读取存储数据 InitFilePath(); LoadLoginData(); LoadRegionData(); clientId = SystemInfo.deviceUniqueIdentifier; Debug.Log("client=" + clientId); clientId = MD5Hash.Hash(Encoding.UTF8.GetBytes(clientId)); Debug.Log("client=" + clientId); loginUI.Init(); loginUI.callbackLogin = OnLoginInput; regionList.AddCallbackChangePage(OnRegionChangePage); regionList.AddCallbackClick(OnClickRegion); regionList.Init(); GameObject obj = Instantiate(loadingPrefab) as GameObject; obj.transform.SetParent(this.transform); obj.transform.localPosition = new Vector3(0, 0, 2); obj.transform.localRotation = Quaternion.identity; loadingUI = obj.GetComponent <LoadingUI>(); loadingUI.Init(); #if UNITY_EDITOR || UNITY_STANDALONE_WIN ServicePointManager.ServerCertificateValidationCallback = (a, b, c, d) => true; #endif }
public void TurnOn() { ui = UIManager.Instance.listManager.CreateBlockList(); ui.AddCallbackChangePage(OnChangePage); ui.AddCallbackClick(OnClickResource); ui.CallbackClose = OnUIClose; }