public void LoadItem(ClothItem clothItem) { ClothItemHook itemHook = null; if (clothItem == null) { return; } itemHook = GetClothHook(clothItem.clothItemType); itemHook.LoadClothItem(clothItem); }
public void LoadClothItem(ClothItem clothItem) { meshRenderer.sharedMesh = clothItem.mesh; meshRenderer.material = clothItem.clothMaterial; meshRenderer.enabled = true; }