Exemplo n.º 1
0
    public static ItemDisplayProxy InstantiateFromTemplate(Item item)
    {
        ItemDisplayProxy idp = Prefabulator.CreatePrefabInstance <ItemDisplayProxy>(PathMaster.ResourcesRelativeGenerateFolder, "ItemDisplayProxyTemplate");

        idp.setup(item);
        return(idp);
    }
Exemplo n.º 2
0
    public static ItemBox InstantiateFromTemplate(ItemDisplayProxy itemDisplayProxy)
    {
        ItemBox itemBox = Prefabulator.CreatePrefabInstance <ItemBox>(PathMaster.ResourcesRelativeGenerateFolder, "ItemBox");

        itemBox.itemDisplayProxy = itemDisplayProxy;
        return(itemBox);
    }
Exemplo n.º 3
0
 public Item getPrefabInstance()
 {
     return(Prefabulator.GetOrCreatePrefab <Item>(PathMaster.ResourcesRelativeItemFolder, name_, this));
 }