private void HandleConLevelupCmd(CommandParser.Command param) { MC2S_ConstellationLevelup ojb = new MC2S_ConstellationLevelup(); Globals.Instance.CliSession.Send(203, ojb); }
public void OnLightBtnClicked(GameObject go) { Globals.Instance.EffectSoundMgr.Play("ui/ui_001"); PetDataEx pet = Globals.Instance.Player.TeamSystem.GetPet(0); int maxHp = 0; int attack = 0; int wuFang = 0; int faFang = 0; pet.GetAttribute(ref maxHp, ref attack, ref wuFang, ref faFang); GameUIManager.mInstance.uiState.MaxHp = maxHp; GameUIManager.mInstance.uiState.Attack = attack; GameUIManager.mInstance.uiState.WuFang = wuFang; GameUIManager.mInstance.uiState.FaFang = faFang; int constellationLevel = Globals.Instance.Player.Data.ConstellationLevel; ConInfo conInfo = ConLevelInfo.GetConInfo(constellationLevel + 1); if (constellationLevel < 60) { this.mBaseScene.mGUIXingZuoPage.mLeftBtn.GetComponent<BoxCollider>().enabled = false; this.mBaseScene.mGUIXingZuoPage.mRightBtn.GetComponent<BoxCollider>().enabled = false; base.StartCoroutine(this.mBaseScene.mGUIXingZuoPage.WaitChangePageTimeLeft()); base.StartCoroutine(this.mBaseScene.mGUIXingZuoPage.WaitChangePageTimeRight()); if (conInfo == null) { return; } if (Globals.Instance.Player.ItemSystem.GetItemCount(GameConst.GetInt32(103)) < GUIRightInfo.GetCost()) { GameUIManager.mInstance.ShowMessageTipByKey("XingZuo12", 0f, 0f); } } if (constellationLevel >= 60) { GameUIManager.mInstance.ShowMessageTipByKey("XingZuo22", 0f, 0f); } if (Globals.Instance.Player.ItemSystem.GetItemCount(GameConst.GetInt32(103)) >= GUIRightInfo.GetCost() && constellationLevel < 60) { MC2S_ConstellationLevelup ojb = new MC2S_ConstellationLevelup(); Globals.Instance.CliSession.Send(203, ojb); } }