Esempio n. 1
0
    public static SpriteRenderer GetGemItemFrameSprite(EquipLibType.ELT pos, int slotIndex)
    {
        BaoShiKongPeiZhi baoShiKongPeiZhi = DataReader <BaoShiKongPeiZhi> .DataList.Find((BaoShiKongPeiZhi a) => a.position == (int)pos && a.slotOpen == slotIndex);

        if (baoShiKongPeiZhi != null && baoShiKongPeiZhi.gemType.get_Count() > 0)
        {
            int color = baoShiKongPeiZhi.gemType.get_Item(0);
            return(GemGlobal.GetGemItemFrameByColor(color));
        }
        return(ResourceManagerBase.GetNullSprite());
    }