public virtual Wrapper GetSerializableWrapper() { InventoryItemWrapper inv = new InventoryItemWrapper(); inv.weight = Weight; inv.name = Name; inv.worth = Worth; inv.iconType = IconType; return(inv); }
public static void DressInstance(InventoryItem item, InventoryItemWrapper wrap) { if (item == null) { Debug.LogError("item is null. need something to dress."); } if (wrap == null) { Debug.LogError("dressing wrapper is null. dressing null?"); } item.Weight = wrap.weight; item.Name = wrap.name; item.Worth = wrap.worth; item.IconType = wrap.iconType; }