| | |
| | | //transform.Find("Panel/Button (1)").GetComponent<Button>().onClick.AddListener(OnClickResetBtn); |
| | | |
| | | |
| | | if (Application.platform == RuntimePlatform.Android) |
| | | { |
| | | //GetetDeviceIMEI();//获取安卓手机IMEI |
| | | imei0 = TDAA_SDKManager.Ins.GetDeviceId();//使用设备ID |
| | | } |
| | | else if (Application.platform == RuntimePlatform.WindowsEditor) |
| | | { |
| | | imei0 = "MyTestGemBattle123"; |
| | | } |
| | | |
| | | GameConfig.PlayerName = imei0; |
| | | |
| | | versionTxt.text = "版本号:" + Application.version; |
| | | //resVersion.text 暂时没有使用 |
| | | transform.Find("Panel/PlayerID").GetComponent<Text>().text = "玩家ID:" + imei0; |
| | | |
| | | |
| | | |
| | | if (!GameConfig.isFirstStart)//后续直接加载 |
| | |
| | | |
| | | void loginNext() |
| | | { |
| | | //if (Application.platform == RuntimePlatform.Android) |
| | | //{ |
| | | // //GetetDeviceIMEI();//获取安卓手机IMEI |
| | | // imei0 = TDAA_SDKManager.Ins.GetDeviceId();//使用设备ID |
| | | //} |
| | | //else if (Application.platform == RuntimePlatform.WindowsEditor) |
| | | //{ |
| | | // imei0 = "MyTestGemBattle123"; |
| | | //} |
| | | |
| | | GameConfig.PlayerName = SDKManager.ins.sdk.uid; |
| | | |
| | | versionTxt.text = "版本号:" + Application.version; |
| | | //resVersion.text 暂时没有使用 |
| | | transform.Find("Panel/PlayerID").GetComponent<Text>().text = "玩家ID:" + SDKManager.ins.sdk.uid; |
| | | |
| | | progressSlider.gameObject.SetActive(true); |
| | | startBtn.gameObject.SetActive(false); |
| | | |