Example #1
0
    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());
    }
Example #2
0
    public static int GetItemId(int moneyType)
    {
        HuoBi huoBi = DataReader <HuoBi> .Get(moneyType);

        if (huoBi != null)
        {
            return(huoBi.items);
        }
        return(0);
    }
Example #3
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);
    }