diff --git a/Depender/Objects/Shops/ShopMod.cs b/Depender/Objects/Shops/ShopMod.cs index 0456b8f..1ecba53 100644 --- a/Depender/Objects/Shops/ShopMod.cs +++ b/Depender/Objects/Shops/ShopMod.cs @@ -17,6 +17,7 @@ public class ShopMod : ModdedObject public override void Decorate() { CustomShop shop = Object.AddComponent(); + shop.walkableFlag = Block.WalkableFlagType.FORWARD; List productsGO = new List(); foreach (ProductMod P in products) { @@ -42,16 +43,15 @@ public enum hand { Left, Right } public hand Hand = hand.Left; [SerializeField] public List ingredients = new List(); - ingredient selected; + private ingredient selected; private Vector2 scrollPos; public virtual GameObject Decorate() { Product P = GO.GetComponent(); - + P.defaultPrice = price; - - + switch (Hand) { case hand.Left: @@ -158,6 +158,8 @@ public enum temprature { none, cold, hot } public override GameObject Decorate() { ConsumableProduct CP = GO.AddComponent(); + + CP.trash = AssetManager.Instance.getPrefab(Prefabs.CandyTrash).gameObject; BindingFlags flags = BindingFlags.GetField | BindingFlags.Instance | BindingFlags.NonPublic; typeof(Product).GetField("displayName", flags).SetValue(CP, Name);