Пример #1
0
    public static ItemDisplayProxy InstantiateFromTemplate(Item item)
    {
        ItemDisplayProxy idp = Prefabulator.CreatePrefabInstance <ItemDisplayProxy>(PathMaster.ResourcesRelativeGenerateFolder, "ItemDisplayProxyTemplate");

        idp.setup(item);
        return(idp);
    }
Пример #2
0
    public static ItemBox InstantiateFromTemplate(ItemDisplayProxy itemDisplayProxy)
    {
        ItemBox itemBox = Prefabulator.CreatePrefabInstance <ItemBox>(PathMaster.ResourcesRelativeGenerateFolder, "ItemBox");

        itemBox.itemDisplayProxy = itemDisplayProxy;
        return(itemBox);
    }
Пример #3
0
 public Item getPrefabInstance()
 {
     return(Prefabulator.GetOrCreatePrefab <Item>(PathMaster.ResourcesRelativeItemFolder, name_, this));
 }