public static SpriteRenderer GetIcon(int moneyType) { if (DataReader <HuoBi> .Contains(moneyType)) { HuoBi huoBi = DataReader <HuoBi> .Get(moneyType); return(GameDataUtils.GetItemIcon(huoBi.items)); } return(ResourceManagerBase.GetNullSprite()); }
public static int GetItemId(int moneyType) { HuoBi huoBi = DataReader <HuoBi> .Get(moneyType); if (huoBi != null) { return(huoBi.items); } return(0); }
public static string GetName(int moneyType) { string result = "***"; HuoBi huoBi = DataReader <HuoBi> .Get(moneyType); if (huoBi != null) { result = GameDataUtils.GetItemName(huoBi.items, true, 0L); } return(result); }