//显示被动技能提示 private void OnPskillTips() { Skilltipsobj.SetActive(true); Skilltipsobj.transform.FindChild("beidong").gameObject.SetActive(true); Skilltipsobj.transform.FindChild("Image").gameObject.SetActive(false); GSkillImage = Skilltipsobj.transform.FindChild("beidong/Image_1").gameObject; PSkillImage = Skilltipsobj.transform.FindChild("beidong/Image_2").gameObject; ASkillImage = Skilltipsobj.transform.FindChild("beidong/Image_3").gameObject; GSkillImage.SetActive(false); PSkillImage.SetActive(true); ASkillImage.SetActive(false); skillName.transform.localPosition = postion_Small_Title.transform.localPosition; skilldec.transform.localPosition = postion_Small_Desc.transform.localPosition; UI_SkillTips _tips = new UI_SkillTips(CurCard, Pskilltemp); //Skilltipstext.text = _tips.GetDesc(); skillName.text = GameUtils.getString(Pskilltemp.getSkillName()) + "Lv" + Pskilltemp.getSkillLevel(); skillxiaohao.transform.parent.parent.gameObject.SetActive(false); skilldec.transform.localPosition.Set(skilldec.transform.localPosition.x, -89.1f, skilldec.transform.localPosition.z); skilldec.text = _tips.GetDesc(); if (m_HeroStar < 3) { string tempText = null; ChsTextTemplate temp = (ChsTextTemplate)DataTemplate.GetInstance().m_ChsTextTable.getTableData("hero_info_skill_open1"); if (temp.languageMap.TryGetValue(AppManager.Inst.GameLanguage, out tempText)) { Skilltipstext.text += tempText.Replace("\\n", "\n"); } } if (string.IsNullOrEmpty(GetLilimt(Pskilltemp))) { skillLimitLevel.gameObject.SetActive(false); } else { skillLimitLevel.gameObject.SetActive(true); skillLimitLevel.text = GetLilimt(Pskilltemp); } if (!InterfaceControler.GetInst().IsOpenSkill(CurCard.GetHeroRow(), Pskilltemp.getSkillNo())) { skillLimitLevel.gameObject.SetActive(true); } else { skillLimitLevel.gameObject.SetActive(false); } }
//显示通用技能提示 private void OnGskillTips() { Skilltipsobj.SetActive(true); Skilltipsobj.transform.FindChild("beidong").gameObject.SetActive(false); Skilltipsobj.transform.FindChild("Image").gameObject.SetActive(true); GSkillImage = Skilltipsobj.transform.FindChild("Image/Image_1").gameObject; PSkillImage = Skilltipsobj.transform.FindChild("Image/Image_2").gameObject; ASkillImage = Skilltipsobj.transform.FindChild("Image/Image_3").gameObject; GSkillImage.SetActive(true); PSkillImage.SetActive(false); ASkillImage.SetActive(false); skillName.transform.localPosition = postion_Big_Title.localPosition; skilldec.transform.localPosition = postion_Big_Desc.localPosition; UI_SkillTips _tips = new UI_SkillTips(CurCard, Gskilltemp); skillxiaohao.transform.parent.parent.gameObject.SetActive(true); skillName.text = GameUtils.getString(Gskilltemp.getSkillName()) + "Lv" + Gskilltemp.getSkillLevel(); skillxiaohao.text = string.Format("<color=#FF0000>{0}</color>{1}", Gskilltemp.getSkillCostNum1(), GetSkillCostString()); skillCD.text = string.Format("<color=#FF0000>{0}</color>秒", Gskilltemp.getCooldown() / 1000); skilldec.text = _tips.GetDesc(); if (string.IsNullOrEmpty(GetLilimt(Gskilltemp))) { skillLimitLevel.gameObject.SetActive(false); } else { skillLimitLevel.gameObject.SetActive(true); skillLimitLevel.text = GetLilimt(Gskilltemp); } //技能是否开启 if (!InterfaceControler.GetInst().IsOpenSkill(CurCard.GetHeroRow(), Gskilltemp.getSkillNo())) { skillLimitLevel.gameObject.SetActive(true); } else { skillLimitLevel.gameObject.SetActive(false); } }