/// <summary> /// ͨÐÐÖ¤µÇ¼ /// </summary> public void PlayerLogin() { if (PhotonHandler.IsShowLog()) { PhotonHandler.ShowLog(string.Format("PlayerLogin:{0}", txtName.text.Trim())); } //YuanUnityPhoton.GetYuanUnityPhotonInstantiate ().SetPlayerBehavior (yuan.YuanPhoton.ConsumptionType.GameSchedule,((int)GameScheduleType.Login).ToString (),SystemInfo.deviceUniqueIdentifier); //YuanUnityPhoton.GetYuanUnityPhotonInstantiate().SetPlayerBjoehavior (yuan.YuanPhoton.ConsumptionType.GameSchedule,((int)GameScheduleType.Login).ToString (),SystemInfo.deviceUniqueIdentifier); if (PhotonHandler.IsAutoLogin()) { PhotonHandler.ShowLog("autologin mode"); YuanUnityPhoton.GetYuanUnityPhotonInstantiate().PlayerLogin(PhotonHandler.GetAutoStr(), PhotonHandler.GetAutoPwd(), "ZealmPass", "UserInfo", true); } else { //YuanUnityPhoton.GetYuanUnityPhotonInstantiate().PlayerLogin(txtName.text.Trim(), txtPwd.text.Trim(), "ZealmPass", "UserInfo", true); StartCoroutine(BeginTimeOut(10, 2, ConnectYuanUnity, () => YuanUnityPhoton.GetYuanUnityPhotonInstantiate().PlayerLogin(txtName.text.Trim(), txtPwd.text.Trim(), "ZealmPass", "UserInfo", true), null)); } //yuan.YuanClass.SwitchListOnlyOne(listMenu, 10, true, true); passID = txtName.text.Trim(); //if (YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ServerConnected == true) //{ // if (YuanUnityPhoton.GetYuanUnityPhotonInstantiate() != null) // { // if (txtName.text.Trim() != "" && txtPwd.text.Trim() != "") // { // YuanUnityPhoton.GetYuanUnityPhotonInstantiate().PlayerLogin(txtName.text.Trim(), txtPwd.text.Trim(), "ZealmPass", "UserInfo", true); // yuan.YuanClass.SwitchListOnlyOne(listMenu, 10, true, true); // passID = txtName.text.Trim(); // Invoke("PlayerLoginTimeOut", 20); // } // else // { // lblWarning.text = StaticLoc.Loc.Get(warningNoText); // } // // } //} //else //{ // lblWarning.text =StaticLoc.Loc.Get("info322")+ ""; //} }