|
|
@@ -245,7 +245,6 @@ namespace ScrapYard
|
|
|
scrapYardStand.SetActive(false);
|
|
|
scrapYardStand.AddComponent<ScrapYardShopStandScript>();
|
|
|
scrapYardStand.name = "scrapyardstand";
|
|
|
- GadgetCoreAPI.AddCustomResource("prop/ScrapYard/stand", scrapYardStand);
|
|
|
|
|
|
scrapYardStand.transform.GetChild(0).GetComponent<Renderer>().material = new Material(Shader.Find("Unlit/Transparent"))
|
|
|
{
|
|
|
@@ -257,6 +256,8 @@ namespace ScrapYard
|
|
|
mainTexture = GadgetCoreAPI.LoadTexture2D("scrapYardStandInfo.png")
|
|
|
};
|
|
|
|
|
|
+ GadgetCoreAPI.AddCustomResource("prop/ScrapYard/stand", scrapYardStand);
|
|
|
+
|
|
|
ItemInfo tileItem = new ItemInfo(ItemType.GENERIC, "scrapyardstand", "Degug item.", null as Texture2D).Register();
|
|
|
TileInfo tile = new TileInfo(TileType.INTERACTIVE, null as Texture2D, new GameObject("scrapyardstand"), tileItem);
|
|
|
int tileID = TileRegistry.Singleton.Register(tile, "scrapyardstand");
|
|
|
@@ -270,7 +271,6 @@ namespace ScrapYard
|
|
|
scrapYardStand.SetActive(false);
|
|
|
scrapYardStand.AddComponent<ScrapYardShopStandChipScript>();
|
|
|
scrapYardStand.name = "scrapyardstandchip";
|
|
|
- GadgetCoreAPI.AddCustomResource("prop/ScrapYard/standchip", scrapYardStand);
|
|
|
|
|
|
scrapYardStand.transform.GetChild(0).GetComponent<Renderer>().material = new Material(Shader.Find("Unlit/Transparent"))
|
|
|
{
|
|
|
@@ -282,6 +282,8 @@ namespace ScrapYard
|
|
|
mainTexture = GadgetCoreAPI.LoadTexture2D("scrapYardStandInfo.png")
|
|
|
};
|
|
|
|
|
|
+ GadgetCoreAPI.AddCustomResource("prop/ScrapYard/standchip", scrapYardStand);
|
|
|
+
|
|
|
ItemInfo tileItem = new ItemInfo(ItemType.GENERIC, "scrapyardstandchip", "Degug item.", null as Texture2D).Register();
|
|
|
TileInfo tile = new TileInfo(TileType.INTERACTIVE, null as Texture2D, new GameObject("scrapyardstandchip"), tileItem);
|
|
|
int tileID = TileRegistry.Singleton.Register(tile, "scrapyardstandchip");
|