Esempio n. 1
0
    public void CustomSelectItem(string itemId)
    {
        this.itemId = itemId;
        if (type == "Body")
        {
            modelManager.SetBikeTexture(ib.GetBodyTextureHigh(itemId), ib.GetBodyObjHigh(ib.dicSticker[itemId].prefabId));
            Debug.Log(ib.dicSticker[itemId].prefabId);
        }

        else if (type == "Suit")
        {
            modelManager.SetSuitTexture(ic.GetSuitTextureHigh(itemId));
        }
        else if (type == "Helmet")
        {
            modelManager.SetHelmetTexture(ic.GetHelmetTextureHigh(itemId), ic.GetHelmetObjHigh(ic.dicTextureHelmetInfo[itemId].prefabId));
        }

        else if (type == "Gloves")
        {
            modelManager.SetGloveTexture(ic.GetGlovesTextureHigh(itemId));
        }
        else if (type == "Boots")
        {
            modelManager.SetBootTexture(ic.GetBootsTextureHigh(itemId));
        }
        else
        {
            Debug.LogError("Don't have menu.");
        }
    }