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

        idp.setup(item);
        return(idp);
    }
示例#2
0
文件: ItemBox.cs 项目: melsov/MyLandz
    public static ItemBox InstantiateFromTemplate(ItemDisplayProxy itemDisplayProxy)
    {
        ItemBox itemBox = Prefabulator.CreatePrefabInstance <ItemBox>(PathMaster.ResourcesRelativeGenerateFolder, "ItemBox");

        itemBox.itemDisplayProxy = itemDisplayProxy;
        return(itemBox);
    }
示例#3
0
文件: Item.cs 项目: melsov/MyLandz
 public Item getPrefabInstance()
 {
     return(Prefabulator.GetOrCreatePrefab <Item>(PathMaster.ResourcesRelativeItemFolder, name_, this));
 }