Ejemplo n.º 1
0
        public void LoadItem(ClothItem clothItem)
        {
            ClothItemHook itemHook = null;

            if (clothItem == null)
            {
                return;
            }

            itemHook = GetClothHook(clothItem.clothItemType);
            itemHook.LoadClothItem(clothItem);
        }
Ejemplo n.º 2
0
 public void LoadClothItem(ClothItem clothItem)
 {
     meshRenderer.sharedMesh = clothItem.mesh;
     meshRenderer.material   = clothItem.clothMaterial;
     meshRenderer.enabled    = true;
 }