Exemple #1
0
        public void LoadItem(ClothItem clothItem)
        {
            ClothItemHook itemHook = null;

            if (clothItem == null)
            {
                return;
            }

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