//技能上限等级 // public static Dictionary<int, int> SKILL_BREAK_LIMIT_LEVEL_DIC = new Dictionary<int, int> // { // }; #endregion public static void SetLevelSprite(UISprite levelSprite, eRoleAttr char_type, bool b) { // b = true; levelSprite.keepAspectRatio = UIWidget.AspectRatioSource.Free; levelSprite.width = b ? (int)(1.2 * levelSprite.height) : levelSprite.height; string prefix = b ? "A_" : string.Empty; levelSprite.spriteName = prefix + LEVEL_SPRITE_NAME_DIC[char_type]; }
public bool IsHandPartnerCanUp(eRoleAttr handbookId) { if (GetHandBookLevel() < UnLockLevel) { return(false); } if (TheHandbookList == null) { EB.Debug.LogError("LTPartnerHandbookManager.IsHandPartnerCanUp TheHandbookList is null"); return(false); } HandbookData templist = TheHandbookList.Find(handbookId); if (templist == null) { EB.Debug.LogError("LTPartnerHandbookManager.IsHandPartnerCanUp templist is null"); return(false); } return(templist.HasAvailableCard); }