//public yuan.YuanMemoryDB.YuanTable ytGameItem = new yuan.YuanMemoryDB.YuanTable("GameItem", ""); // Use this for initialization void Start() { ytStoreItem = YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ytStoreItem; GetBtn(); //StartCoroutine("GetItemInfo"); //Invoke("GetBtn", 5); }
void Start() { invCL = PanelStatic.StaticBtnGameManager.invcl; warnings = PanelStatic.StaticWarnings; yt.Rows = YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ytTablePacks.SelectRowsList("Name", "VIP"); //Debug.Log("---------------------每日开启:" + yt.Rows.Count); }
/// <summary> /// ÉêÇëÕÒ»ØÃÜÂë /// </summary> public void GetPwd() { if (timeTemp < Time.time) { timeTemp = Time.time + 5; if (YuanUnityPhoton.GetYuanUnityPhotonInstantiate() != null) { if (txtGetPwdEmail.text.Trim() != "") { if (EmailValid(txtGetPwdEmail.text.Trim())) { //YuanUnityPhoton.GetYuanUnityPhotonInstantiate().GetPwd(txtGetPwdName.text.Trim(), txtGetPwdEmail.text.Trim(), "ZealmPass", "UserInfo"); StartCoroutine(BeginTimeOut(10, 2, ConnectYuanUnity, () => YuanUnityPhoton.GetYuanUnityPhotonInstantiate().GetPwd(txtGetPwdName.text.Trim(), txtGetPwdEmail.text.Trim()), null)); } else { lblGetPwdWarning.text = StaticLoc.Loc.Get(warningEmailValid); } } else { lblGetPwdWarning.text = StaticLoc.Loc.Get(noInfo); } } } else { lblGetPwdWarning.text = StaticLoc.Loc.Get(strSelectMost); } }
public void GetPage(string mPageId) { yuan.YuanMemoryDB.YuanRow row = YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ytGameItem.SelectRowEqual("id", mPageId); if (row != null) { if (row["ItemID"].YuanColumnText.Substring(0, 2) == "88") { PanelStatic.StaticBtnGameManager.invcl.SendMessage("AddNewDaojuItemAsID", row["ItemID"].YuanColumnText + ",01", SendMessageOptions.DontRequireReceiver); } else if (row["ItemID"].YuanColumnText.Substring(0, 2) == "72") { PanelStatic.StaticBtnGameManager.invcl.SendMessage("AddNewRideItemAsID", row["ItemID"].YuanColumnText, SendMessageOptions.DontRequireReceiver); } else if (row["ItemID"].YuanColumnText.Substring(0, 2) == "70") { PanelStatic.StaticBtnGameManager.invcl.SendMessage("AddBagDigestItemAsID", row["ItemID"].YuanColumnText, SendMessageOptions.DontRequireReceiver); } else if (row["ItemID"].YuanColumnText.Substring(0, 2) == "71") { PanelStatic.StaticBtnGameManager.invcl.SendMessage("AddBagSoulItemAsID", row["ItemID"].YuanColumnText, SendMessageOptions.DontRequireReceiver); } else { PanelStatic.StaticBtnGameManager.invcl.SendMessage("AddBagItemAsID", row["ItemID"].YuanColumnText + ",01", SendMessageOptions.DontRequireReceiver); } //PanelStatic.StaticBtnGameManager.invcl.SendMessage("AddBagItemAsID", row["ItemID"].YuanColumnText+",01", SendMessageOptions.DontRequireReceiver); PanelStatic.StaticWarnings.warningAllEnter.Show(StaticLoc.Loc.Get("info358"), StaticLoc.Loc.Get("info501")); } else { PanelStatic.StaticWarnings.warningAllEnter.Show(StaticLoc.Loc.Get("info358"), StaticLoc.Loc.Get("info502")); } }
public void GetHangUp(int mSeconds) { if (mSeconds <= 0) { return; } // Debug.Log("--------------------------上机挂机时间:" + mSeconds); int mHangTime = BtnGameManager.yt.Rows[0]["HangUpMaxTime"].YuanColumnText == ""?0: int.Parse(BtnGameManager.yt.Rows[0]["HangUpMaxTime"].YuanColumnText); int maxHangTime = int.Parse(YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ytPlayerService.SelectRowEqual("VIPType", BtnGameManager.yt.Rows[0]["Serving"].YuanColumnText == "" ? "0" : BtnGameManager.yt.Rows[0]["Serving"].YuanColumnText)["HangUpMaxTime"].YuanColumnText) * 60 * 60; if (mHangTime < maxHangTime) { int getHangTime = ((maxHangTime - mHangTime) > mSeconds) ? mSeconds : (maxHangTime - mHangTime); //float getExp=(float)getHangTime * (float)YuanUnityPhoton.GetYuanUnityPhotonInstantiate().dicBenefitsInfo[(byte)yuan.YuanPhoton.BenefitsType.HangUpExp]; float getExp = (float)getHangTime * (float)YuanUnityPhoton.dicBenefitsInfo[(byte)yuan.YuanPhoton.BenefitsType.HangUpExp]; if (getExp > 0) { inv.SendMessage("AddExp", (int)getExp, SendMessageOptions.DontRequireReceiver); BtnGameManager.yt.Rows[0]["HangUpMaxTime"].YuanColumnText = (int.Parse(BtnGameManager.yt.Rows[0]["HangUpMaxTime"].YuanColumnText == "" ? "0" : BtnGameManager.yt.Rows[0]["HangUpMaxTime"].YuanColumnText) + getHangTime).ToString(); EquipEnhance.instance.ShowMyItem(StaticLoc.Loc.Get("info358"), string.Format("{0}{1}{2}", StaticLoc.Loc.Get("info503"), (int)getExp, StaticLoc.Loc.Get("info504"))); } } }
/// <summary> /// ¿ìËÙ×¢²á /// </summary> public void PlayerFastLogon() { if (YuanUnityPhoton.GetYuanUnityPhotonInstantiate() != null) { if (txtCreatPlayerName.text.Trim() != "") { if (GetStringMatch(txtCreatPlayerName.text.Trim(), randomName.shieldedWord.myStr) == false) { string proID = GetOpenPlayerType(); if (proID != "") { //Debug.Log("1111111111111111111111111" + PlayerPrefs.GetString("InFastServer")); YuanUnityPhoton.GetYuanUnityPhotonInstantiate().PlayerFastLogon(SystemInfo.deviceUniqueIdentifier, proID, PlayerPrefs.GetString("InFastServer"), txtCreatPlayerName.text.Trim(), "DarkSword2", "PlayerInfo"); } } else { lblCreatWarning.text = StaticLoc.Loc.Get(warningSensitive); } } else { lblCreatWarning.text = StaticLoc.Loc.Get(noNickName); } } }
void StartHangUpTime() { try { if (InRoom.GetInRoomInstantiate().ServerConnected&&BtnGameManager.yt != null) { playerHangTime = BtnGameManager.yt.Rows[0]["HangUpMaxTime"].YuanColumnText == ""?0: int.Parse(BtnGameManager.yt.Rows[0]["HangUpMaxTime"].YuanColumnText); strPlayerMaxHangTime = YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ytPlayerService.SelectRowEqual("VIPType", BtnGameManager.yt.Rows[0]["Serving"].YuanColumnText == "" ? "0" : BtnGameManager.yt.Rows[0]["Serving"].YuanColumnText)["HangUpMaxTime"].YuanColumnText; PlayerMaxHangTime = int.Parse(strPlayerMaxHangTime == ""?"0":strPlayerMaxHangTime) * 60; if (playerHangTime < PlayerMaxHangTime * 60) { numHangUp++; timeHangUp = System.TimeSpan.FromSeconds(numHangUp); lblTime.text = timeHangUp.ToString(); if (numHangUp % 60 == 0) { //exp += (int)(60 * (float)YuanUnityPhoton.GetYuanUnityPhotonInstantiate().dicBenefitsInfo[(byte)yuan.YuanPhoton.BenefitsType.HangUpExp]); exp += (int)(60 * (float)YuanUnityPhoton.dicBenefitsInfo[(byte)yuan.YuanPhoton.BenefitsType.HangUpExp]); //inv.SendMessage("AddExp", 60 * (float)YuanUnityPhoton.GetYuanUnityPhotonInstantiate().dicBenefitsInfo[(byte)yuan.YuanPhoton.BenefitsType.HangUpExp], SendMessageOptions.DontRequireReceiver); InRoom.GetInRoomInstantiate().HangUpAddExp(); BtnGameManager.yt.Rows[0]["HangUpMaxTime"].YuanColumnText = (int.Parse(BtnGameManager.yt.Rows[0]["HangUpMaxTime"].YuanColumnText == "" ? "0" : BtnGameManager.yt.Rows[0]["HangUpMaxTime"].YuanColumnText) + 1).ToString(); } } else { lblTime.text = StaticLoc.Loc.Get("info353"); } } } catch (System.Exception ex) { Debug.LogWarning(ex.ToString()); } }
/// <summary> /// Íæ¼ÒÏêϸע²á /// </summary> public void PlayerLogon() { if (YuanUnityPhoton.GetYuanUnityPhotonInstantiate() != null) { if (txtLogonPwd.text.Trim() != "" && txtLogonPwdAgain.text.Trim() != "" && txtLogonEmail.text.Trim() != "") { if (txtLogonPwd.text.Trim() == txtLogonPwdAgain.text.Trim()) { if (EmailValid(txtLogonEmail.text.Trim())) { //YuanUnityPhoton.GetYuanUnityPhotonInstantiate ().SetPlayerBehavior (yuan.YuanPhoton.ConsumptionType.GameSchedule,((int)GameScheduleType.Logon).ToString (),SystemInfo.deviceUniqueIdentifier); //YuanUnityPhoton.GetYuanUnityPhotonInstantiate().PlayerLogon("", "", txtLogonPwd.text.Trim(), txtLogonEmail.text.Trim(), txtLicense.text.Trim (),txtPlayerInvite.text.Trim(),"ZealmPass", "UserInfo"); StartCoroutine(BeginTimeOut(10, 2, ConnectYuanUnity, () => YuanUnityPhoton.GetYuanUnityPhotonInstantiate().PlayerLogon("", "", txtLogonPwd.text.Trim(), txtLogonEmail.text.Trim(), txtLicense.text.Trim(), txtPlayerInvite.text.Trim(), "ZealmPass", "UserInfo"), null)); } else { lblLogonWarning.text = StaticLoc.Loc.Get(warningEmailValid); } } else { lblLogonWarning.text = StaticLoc.Loc.Get(warningPwdValid); } } else { lblLogonWarning.text = StaticLoc.Loc.Get(noInfo); } } }
/// <summary> /// ¸ü¸ÄÃÜÂë /// </summary> public void UpdatePwd() { //SetWarningNO(); listMenu[5].transform.localScale = Vector3.one; if (YuanUnityPhoton.GetYuanUnityPhotonInstantiate() != null) { if (txtUpdatePwdOrigin.text.Trim() != "" && txtUpdatePwdNew.text.Trim() != "" && txtUpdatePwdNewAgain.text.Trim() != "") { if (txtUpdatePwdNew.text.Trim() == txtUpdatePwdNewAgain.text.Trim()) { if (passID != "") { YuanUnityPhoton.GetYuanUnityPhotonInstantiate().UpdatePwd(passID, txtUpdatePwdOrigin.text.Trim(), txtUpdatePwdNew.text.Trim()); } } else { lblUpdatePwdWarning.text = StaticLoc.Loc.Get(warningPwdValid); } } else { lblUpdatePwdWarning.text = StaticLoc.Loc.Get(noInfo); } } }
/// <summary> /// 更新玩家信息 /// </summary> public void RefreshPlayerInfo() { if (yr != null && yr.ContainsKey("PlayerName")) { lblPlayerName.text = yr["PlayerName"].YuanColumnText.Trim(); lblPlayerLevel.text = yr["PlayerLevel"].YuanColumnText.Trim(); lblPlayerPro.text = RefreshList.GetPro(yr["ProID"].YuanColumnText.Trim()); lblPrestige.text = yr["Prestige"].YuanColumnText.Trim(); lblRanking.text = yr["VSRanking"].YuanColumnText.Trim(); if (yr["GuildName"].YuanColumnText.Trim() == "") { lblGuild.text = StaticLoc.Loc.Get("info689"); } else { lblGuild.text = yr["GuildName"].YuanColumnText.Trim(); } yrLoaction = YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ytMapLevel.SelectRowEqual("MapID", yr["Place"].YuanColumnText.Trim()); lblLocation.text = yrLoaction["MapName"].YuanColumnText.Trim(); if (btnTalk != null) { btnTalk.playerID = yr["PlayerID"].YuanColumnText.Trim(); } } }
// Use this for initialization void Start() { YuanUnityPhoton.GetYuanUnityPhotonInstantiate().tableRead = this; if (lblGameVersion != null) { lblGameVersion.text = YuanUnityPhoton.GameVersion.ToString(); } }
public void OnBtnEnter() { errorText = errorText.Replace("'", "''"); if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor) { YuanUnityPhoton.GetYuanUnityPhotonInstantiate().SendError(Application.platform.ToString(), "", "", errorText); } warnings.warningAllEnterClose.Close(); }
void Awake() { panelActivity = this; activityReward.Clear(); invMaker = PanelStatic.StaticBtnGameManager.InvMake; yt = YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ytActivity; }
void ShowPanel() { #if UNITY_IOS YuanUnityPhoton.GetYuanUnityPhotonInstantiate().DeviceType(phoneID, phoneType.ToString()); BtnManager.my.warnings.warningAllEnter.btnEnter.target = this.gameObject; BtnManager.my.warnings.warningAllEnter.btnEnter.functionName = "EscapeApp"; BtnManager.my.warnings.warningAllEnter.Show(StaticLoc.Loc.Get("buttons620"), StaticLoc.Loc.Get("info1066")); #endif }
/// <summary> /// Load the specified asset and activate the localization. /// </summary> void Load(TextAsset asset) { mLanguage = asset.name; PlayerPrefs.SetString("Language", mLanguage); ByteReader reader = new ByteReader(asset); mDictionary = reader.ReadDictionary(); UIRoot.Broadcast("OnLocalize", this); YuanUnityPhoton.GetYuanUnityPhotonInstantiate().dicLanguage = mDictionary; }
/// <summary> /// 获取物品价值血石金币 /// </summary> /// <returns>The item identifier as string.</returns> /// <param name="selectStr">Select string.</param> /// <param name="selectID">Select I.</param> /// <param name="str">String.</param> string GetItemIDAsStr(string selectStr, string selectID, string str) { foreach (yuan.YuanMemoryDB.YuanRow rows in YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ytGameItem.Rows) { if (rows[selectStr].YuanColumnText == selectID) { return(rows[str].YuanColumnText); } } return(""); }
public void GoMainMenuOKSDK() { PhotonNetwork.DestroyPlayerObjects(PhotonNetwork.player); MainMenuManage.gameLoginType = MainMenuManage.GameLoginType.MainMenu; if (!YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ServerConnected) { YuanUnityPhoton.NewYuanUnityPhotonInstantiate().ServerAddress = PlayerPrefs.GetString("TestServer") + ":5059"; YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ServerApplication = PlayerPrefs.GetString("TestServerName"); YuanUnityPhoton.GetYuanUnityPhotonInstantiate().Connect(); } SendMessage("SongLoadOut", SendMessageOptions.DontRequireReceiver); }
IEnumerator RunKeyStore(string mKeyCode) { while (true) { if (YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ServerConnected == true) { break; } yield return(new WaitForSeconds(0.1f)); } YuanUnityPhoton.GetYuanUnityPhotonInstantiate().LoginValidation(mKeyCode); }
void Start() { yt.Add(YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ytMapLevel.SelectRowEqual("MapID", Application.loadedLevelName.Substring(3, 3))); SC = this; // Dictionary<int, bool> selectchannel = new Dictionary<int, bool>(); // // for(int i=0;i<30;i++) // { // selectchannel.Add(i, i%2==0); // } // ShowSelectChannel(selectchannel); }
/// <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")+ ""; //} }
void ShowTime() { if (Application.loadedLevelName == "Map911") { ActiveID = "9"; yuan.YuanMemoryDB.YuanRow yr = YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ytActivity.SelectRowEqual("id", ActiveID); string Tim = yr["ActivityTimePeriods"].YuanColumnText; string[] strt = Tim.Split('-'); string ActivityEndTime = strt[1]; // string ActivityEndTime = "15:30"; string timMe = InRoom.GetInRoomInstantiate().serverTime.ToString("d").Trim() + " " + ActivityEndTime + ":00"; int LastTime = (int)((DateTime.Parse(timMe) - InRoom.GetInRoomInstantiate().serverTime).TotalSeconds); int hours = (int)(LastTime / (60 * 60)); int minutes = LastTime % (60 * 60) / 60; int seconds = LastTime % (60 * 60) % 60; if (LastTime >= 0) { LblTime.text = string.Format("{0:00}:{1:00}:{2:00}", hours, minutes, seconds); } } if (Application.loadedLevelName == "Map912") { ActiveID = "22"; yuan.YuanMemoryDB.YuanRow yr = YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ytActivity.SelectRowEqual("id", ActiveID); string Tim = yr["ActivityTimePeriods"].YuanColumnText; string[] strt = Tim.Split('-'); string ActivityEndTime = strt[1]; // string ActivityEndTime = "15:30"; string timMe = InRoom.GetInRoomInstantiate().serverTime.ToString("d").Trim() + " " + ActivityEndTime + ":00"; int LastTime = (int)((DateTime.Parse(timMe) - InRoom.GetInRoomInstantiate().serverTime).TotalSeconds); int hours = (int)(LastTime / (60 * 60)); int minutes = LastTime % (60 * 60) / 60; int seconds = LastTime % (60 * 60) % 60; if (LastTime >= 0) { LblTime.text = string.Format("{0:00}:{1:00}:{2:00}", hours, minutes, seconds); } } else { return; } }
// Update is called once per frame void Update() { lblNowServer.text = YuanUnityPhoton.GetYuanUnityPhotonInstantiate().peer.ServerAddress; if (YuanUnityPhoton.GetYuanUnityPhotonInstantiate().peer.PeerState == ExitGames.Client.Photon.PeerStateValue.Connected) { lblNowServerStatus.text = StaticLoc.Loc.Get("info351"); } else { lblNowServerStatus.text = StaticLoc.Loc.Get("info352"); } }
private int maxTowerLevel = 30;// 困魔塔最大层数 // Use this for initialization void Start() { yuan.YuanMemoryDB.YuanTable bossTower = YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ytBosstower; List <string> ids = bossTower.GetColumnText("id"); maxTowerLevel = ids.Count; int layer = 0; yuan.YuanMemoryDB.YuanRow yRow = null; string item = ""; for (int i = 0; i < ids.Count; i++) { layer = int.Parse(ids[i]); yRow = bossTower.SelectRowEqual("id", ids[i]); bossTowerInfoDic.Add(layer, yRow); item = yRow["itemlist"].YuanColumnText.Trim(); if (string.IsNullOrEmpty(item)) { continue; } string[] items = item.Split(';'); itemList.Add(layer, items); if (i == maxTowerLevel - 1) { //显示首次通关奖励 string rewardItem = yRow["rewarditem"].YuanColumnText.Trim(); if (!string.IsNullOrEmpty(rewardItem)) { firstRewardItem.SetItemInfo(rewardItem); firstRewardItem.DisableItem(); } } } //if (isFirst) //{ // //yield return new WaitForSeconds(1.0f); // InitItemGrid(); // InitGoldAndExp(currLayer); // isFirst = false; //} if (!BtnGameManagerBack.isTown()) { closeBtn.SetActive(false); } }
void ReadTimeOut() { if (!isReadTimeOutEnd) { YuanUnityPhoton.GetYuanUnityPhotonInstantiate().isTimerTableRead = false; strInfo = StaticLoc.Loc.Get("info546"); isOnlineFiled = true; if (YuanUnityPhoton.GetYuanUnityPhotonInstantiate().timerTableRead != null) { YuanUnityPhoton.GetYuanUnityPhotonInstantiate().timerTableRead.Dispose(); YuanUnityPhoton.GetYuanUnityPhotonInstantiate().timerTableRead = null; } } }
public IEnumerator BeginTimeOutNoRe(int mNum, int mNumCon, ActionCon actionConnect, Action action, Action actionTimeOut) { isStartTimeOut = true; objLoading.SetActive(true); if (actionConnect != null) { yield return(StartCoroutine(actionConnect(mNumCon))); } if (action != null) { action(); } int outTime = 0; while (true) { yield return(new WaitForSeconds(1)); outTime++; if (outTime >= mNum || !YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ServerConnected || !isStartTimeOut) { break; } } //yield return new WaitForSeconds(mNum); if (isStartTimeOut) { // NGUIDebug.Log("==timeout :" + action.Target.ToString() + "\n"); if (isTDlogin) { //TD_info.loginFail(); isTDlogin = false; } if (isTDselet) { //TD_info.selectFail(PlayerPrefs.GetString("InAppServerName", "NON")); isTDselet = false; } warnings.warningAllEnter.Show(StaticLoc.Loc.Get("info358"), StaticLoc.Loc.Get("info720")); objLoading.SetActive(false); isStartTimeOut = false; if (actionTimeOut != null) { actionTimeOut(); } } }
/// <summary> /// 获取礼包中的血石金币 /// </summary> /// <returns>The cost money in table packs.</returns> /// <param name="lastStr">礼包id</param> int[] GetCostMoneyInTablePacks(string lastStr) { int[] money = new int[2]; money[0] = 0; money[1] = 0; foreach (yuan.YuanMemoryDB.YuanRow rows in YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ytTablePacks.Rows) { if (rows["id"].YuanColumnText == lastStr) { money[1] = (rows["BloodStrone"].YuanColumnText != "") ? int.Parse(rows["BloodStrone"].YuanColumnText) : 0; money[0] = (rows["Cash"].YuanColumnText != "") ? int.Parse(rows["Cash"].YuanColumnText) : 0; } } return(money); }
public void ReadTimeOut(string mInfo) { if (!isReadTimeOutEnd) { strInfo = StaticLoc.Loc.Get(mInfo); isOnlineFiled = true; CancelInvoke("ReadTimeOut"); if (YuanUnityPhoton.GetYuanUnityPhotonInstantiate().timerTableRead != null) { YuanUnityPhoton.GetYuanUnityPhotonInstantiate().timerTableRead.Dispose(); YuanUnityPhoton.GetYuanUnityPhotonInstantiate().timerTableRead = null; } } }
/// <summary> /// µ¯»Ø½ÇÉ«Ñ¡Ôñ²Ëµ¥²¢Ë¢Ð /// </summary> public void PlayerStartIn() { //AnimCamera.transform.localEulerAngles = new Vector3(354.2721f, 280.7f, 359.2356f); //tweenPlayerCreat.Play(true); //tweenPlayerSelect.Play(false); //tweenPlayerPwd.Play(true); //if (YuanUnityPhoton.GetYuanUnityPhotonInstantiate() != null && YuanUnityPhoton.GetYuanUnityPhotonInstantiate().userID.Trim() != "" && YuanUnityPhoton.GetYuanUnityPhotonInstantiate().userPwd.Trim() != "") //{ // YuanUnityPhoton.GetYuanUnityPhotonInstantiate().PlayerLogin(YuanUnityPhoton.GetYuanUnityPhotonInstantiate().userID, YuanUnityPhoton.GetYuanUnityPhotonInstantiate().userPwd, "ZealmPass", "UserInfo", false); //} objLoading.SetActive(true); InRoom.GetInRoomInstantiate().GetPlayers(YuanUnityPhoton.GetYuanUnityPhotonInstantiate().userID, PlayerPrefs.GetString("InAppServer"), "DarkSword2", "PlayerInfo"); // background.gameObject.active = true; }
void GetTitle(string mType) { List <yuan.YuanMemoryDB.YuanRow> listRow = YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ytHelp.SelectRowsListEqual("HelpType", mType); foreach (BtnHelp item in listTitle) { item.gameObject.SetActive(false); } if (listRow != null) { int num = 0; BtnHelp btn; foreach (yuan.YuanMemoryDB.YuanRow item in listRow) { if (listTitle.Count > num) { listTitle[num].yr = item; listTitle[num].title.text = item["HelpName"].YuanColumnText; listTitle[num].info = this.lblInfo; listTitle[num].gameObject.SetActive(true); btn = listTitle[num]; } else { BtnHelp tempBtn = (BtnHelp)Instantiate(insBtnHelp); tempBtn.transform.parent = gridTitle.transform; tempBtn.transform.localScale = Vector3.one; tempBtn.transform.localPosition = Vector3.zero; tempBtn.myCkb.group = 8; tempBtn.yr = item; tempBtn.title.text = item["HelpName"].YuanColumnText; tempBtn.info = this.lblInfo; listTitle.Add(tempBtn); btn = tempBtn; } if (num == 0) { btn.OnClick(); } num++; } gridTitle.repositionNow = true; } }
IEnumerator Start() { foreach (yuan.YuanMemoryDB.YuanRow yr in YuanUnityPhoton.GetYuanUnityPhotonInstantiate().ytNotice.Rows) { parm[0] = (object)yr["NoticeText"].YuanColumnText; parm[1] = (object)Color.yellow; //barAll.SendMessage("AddText", parm, SendMessageOptions.DontRequireReceiver); //barMainAll.SendMessage("AddText", parm, SendMessageOptions.DontRequireReceiver); if (barAll != null) { barAll.AddText(parm); } if (barMainAll != null) { barMainAll.AddText(parm); } yield return(new WaitForFixedUpdate()); } if (BtnGameManager.yt.Rows[0]["GuildID"].YuanColumnText != "") { //InRoom.GetInRoomInstantiate().GetYuanTable("select * from GuildInfo where id=" + BtnGameManager.yt.Rows[0]["GuildID"].YuanColumnText, "DarkSword2", ytGuild); InRoom.GetInRoomInstantiate().GetTableForID(BtnGameManager.yt.Rows[0]["GuildID"].YuanColumnText, yuan.YuanPhoton.TableType.GuildInfo, ytGuild); if (ytGuild.IsUpdate) { yield return(new WaitForSeconds(1)); } if (ytGuild.Rows.Count > 0) { parm[0] = (object)ytGuild.Rows[0]["GuildNotice"].YuanColumnText; parm[1] = (object)Color.green; //barAll.SendMessage("AddText", parm, SendMessageOptions.DontRequireReceiver); //barMainAll.SendMessage("AddText", parm, SendMessageOptions.DontRequireReceiver); //barGuild.SendMessage("AddText", parm, SendMessageOptions.DontRequireReceiver); barMainAll.AddText(parm); if (barAll != null) { barAll.AddText(parm); barGuild.AddText(parm); } } } }