IEnumerator Connect() { if (isFastBtn) { // Debug.Log ("8888888888"); mainMenuManage.btnCreatPlayerBack.invokMethodName = "Back"; mainMenuManage.btnCreatPlayerEnter.invokMethodName = "PlayerFastLogon"; btnManage.AnimCamera.CrossFade("CameraToNewPlayer"); btnManage.cameraStatus = BtnManager.CameraStatus.NewPlayer; mainMenuManage.isLogin = false; PlayerPrefs.SetString("InFastServer", this.applicationName); mainMenuManage.listMenu[4].transform.localScale = new Vector3(1, 1, 1); yuan.YuanClass.SwitchListOnlyOne(mainMenuManage.listMenu, 4, true, true); // Debug.Log ("99999999999"); //mainMenuManage.YuanSetActive(mainMenuManage.btnSelectServerCreate, false); } else { outTime = 0; InvokeRepeating("ReOnline", 1, 1); if (!InRoom.GetInRoomInstantiate().ServerConnected) { PhotonHandler.ShowLog("ReOnlin"); InRoom.NewInRoomInstantiate().SetAddress(this.applicationIp + ":" + this.applicationHost); InRoom.GetInRoomInstantiate().ServerApplication = this.applicationName; InRoom.GetInRoomInstantiate().Connect(); } while (!InRoom.GetInRoomInstantiate().ServerConnected) { yield return(new WaitForSeconds(0.1f)); } YuanUnityPhoton.YuanDispose(); yuan.YuanClass.SwitchListOnlyOne(mainMenuManage.listMenu, 9, true, true); mainMenuManage.listMenu[9].SetActive(true); InRoom.GetInRoomInstantiate().GetPlayers(YuanUnityPhoton.GetYuanUnityPhotonInstantiate().userID, this.applicationName, "DarkSword2", "PlayerInfo"); PlayerPrefs.SetString("InAppServer", this.applicationName); PhotonHandler.ShowLog("InAppServerIP Set:" + this.applicationIp); PlayerPrefs.SetString("InAppServerIP", InRoom.GetInRoomInstantiate().GetSvrAddress()); } }