public static ItemDisplayProxy InstantiateFromTemplate(Item item) { ItemDisplayProxy idp = Prefabulator.CreatePrefabInstance <ItemDisplayProxy>(PathMaster.ResourcesRelativeGenerateFolder, "ItemDisplayProxyTemplate"); idp.setup(item); return(idp); }
public static ItemBox InstantiateFromTemplate(ItemDisplayProxy itemDisplayProxy) { ItemBox itemBox = Prefabulator.CreatePrefabInstance <ItemBox>(PathMaster.ResourcesRelativeGenerateFolder, "ItemBox"); itemBox.itemDisplayProxy = itemDisplayProxy; return(itemBox); }
public Item getPrefabInstance() { return(Prefabulator.GetOrCreatePrefab <Item>(PathMaster.ResourcesRelativeItemFolder, name_, this)); }