|  |  | 
 |  |  |     public static void SetIconWithMoneyType(this Image _image, int moneyType) | 
 |  |  |     { | 
 |  |  |         if (_image == null) return; | 
 |  |  |         // string iconKey = StringUtility.Contact("Money_Type_", moneyType); | 
 |  |  |         if (GeneralDefine.MoneyDisplayModel.ContainsKey(moneyType)) | 
 |  |  |         { | 
 |  |  |             _image.SetOrgSprite(ItemConfig.Get(GeneralDefine.MoneyDisplayModel[moneyType]).IconKey); | 
 |  |  |         } | 
 |  |  |         else | 
 |  |  |         { | 
 |  |  |             Debug.LogError("MoneyDisplayModel 为配置货币类型:" + moneyType); | 
 |  |  |             // 不需要物品的情况补充 | 
 |  |  |             // string iconKey = StringUtility.Contact("Money_Type_", moneyType); | 
 |  |  |             Debug.LogError("MoneyDisplayModel 未配置货币类型:" + moneyType); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |         } | 
 |  |  |         else | 
 |  |  |         { | 
 |  |  |             Debug.LogError("MoneyDisplayModel 为配置货币类型:" + moneyType); | 
 |  |  |             Debug.LogError("MoneyDisplayModel 未配置货币类型:" + moneyType); | 
 |  |  |             return ""; | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  | 
 |  |  |                     //武将招募积分 | 
 |  |  |                     return PlayerDatas.Instance.GetPlayerDataByType(PlayerDataType.default44); | 
 |  |  |                 } | 
 |  |  |             case 52: | 
 |  |  |                 { | 
 |  |  |                     //淘金令 | 
 |  |  |                     return PlayerDatas.Instance.GetPlayerDataByType(PlayerDataType.GoldRush); | 
 |  |  |                 } | 
 |  |  |             case 98: | 
 |  |  |                 { | 
 |  |  |                     //过期型代金券 | 
 |  |  | 
 |  |  |         return AppendColor(useCnt <= cnt ? engoughColor : TextColType.Red, $"{ReplaceLargeNum(cnt)}/{ReplaceLargeNum(useCnt)}"); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     /// <param name="needTips">0 不响应 1 弹提示 2 弹获取途径tips</param> | 
 |  |  |     public static bool CheckMoneyCount(int moneyType, long needCount, int needTips = 0) | 
 |  |  |     { | 
 |  |  |         if (needCount <= 0) | 
 |  |  |         { | 
 |  |  |             return true; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         long haveCount = GetMoneyCnt(moneyType); | 
 |  |  |  | 
 |  |  |         bool isEnough = haveCount >= needCount; | 
 |  |  |  | 
 |  |  |         if (!isEnough) | 
 |  |  |         { | 
 |  |  |             if (needTips == 1) | 
 |  |  |             { | 
 |  |  |                 SysNotifyMgr.Instance.ShowTip("LackMoney", moneyType); | 
 |  |  |             } | 
 |  |  |             else if (needTips == 2) | 
 |  |  |             { | 
 |  |  |                 ItemTipUtility.ShowMoneyTip(moneyType); | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         return isEnough; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     #endregion | 
 |  |  |  | 
 |  |  |     #region 得到装备位或者祝福树品质名称 带颜色 |