/**更新技能 */ void UpdateSkill() { MountsConfigManager config = MountsConfigManager.Instance; MountsManagerment manager = MountsManagerment.Instance; if (manager.getMountsLevel() < config.getAttrPerOpenLv()) { attrPerLimitLabel.gameObject.SetActive(true); attrPerLabel.gameObject.SetActive(true); attrPerLimitLabel.text = LanguageConfigManager.Instance.getLanguage("mount_open_lifeskill_desc", config.getAttrPerOpenLv().ToString()); } else { attrPerLimitLabel.gameObject.SetActive(false); attrPerLabel.gameObject.SetActive(true); attrPerLabel.text = LanguageConfigManager.Instance.getLanguage("mount_addAttrValue", config.getAttrPerByString()); } if (manager.getMountsLevel() < config.getAddPveOpenLv()) { attrStoreLimitLabel.gameObject.SetActive(true); attrStoreLimitLabel.text = LanguageConfigManager.Instance.getLanguage("mount_open_lifeskill_desc", config.getAddPveOpenLv().ToString()); pveStoreBar.gameObject.SetActive(false); } else { attrStoreLimitLabel.gameObject.SetActive(false); pveStoreBar.gameObject.SetActive(true); pveStoreBar.updateValue(UserManager.Instance.self.getStorePvEPoint(), UserManager.Instance.self.getStorePvEPointMax()); pveStoreValue.text = UserManager.Instance.self.getStorePvEPoint() + "/" + UserManager.Instance.self.getStorePvEPointMax() + "(" + LanguageConfigManager.Instance.getLanguage("s0572") + ")"; } }
/** 更新技能图标 */ private void updateIcon() { MountsConfigManager config = MountsConfigManager.Instance; MountsManagerment manager = MountsManagerment.Instance; if (manager.getMountsLevel() < config.getAttrPerOpenLv()) { icon.gameObject.SetActive(true); limitLabel.gameObject.SetActive(true); limitLabel.text = LanguageConfigManager.Instance.getLanguage("mount_open_lifeskill_desc", config.getAttrPerOpenLv().ToString()); } else { icon.gameObject.SetActive(true); limitLabel.gameObject.SetActive(false); } }