diff --git a/Assets/Scenes/NewShop.unity b/Assets/Scenes/NewShop.unity index 6115634..239a04b 100644 --- a/Assets/Scenes/NewShop.unity +++ b/Assets/Scenes/NewShop.unity @@ -337,7 +337,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: a5001818e381b2c4890a9f8b1d8c943e, type: 3} m_Name: m_EditorClassIdentifier: - view: {fileID: 0} + view: {fileID: 336428456} filter: 100 --- !u!114 &24632925 MonoBehaviour: @@ -1543,7 +1543,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: a5001818e381b2c4890a9f8b1d8c943e, type: 3} m_Name: m_EditorClassIdentifier: - view: {fileID: 0} + view: {fileID: 336428456} filter: 0 --- !u!114 &169548031 MonoBehaviour: @@ -15198,7 +15198,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: a5001818e381b2c4890a9f8b1d8c943e, type: 3} m_Name: m_EditorClassIdentifier: - view: {fileID: 0} + view: {fileID: 336428456} filter: 1 --- !u!114 &1371998400 MonoBehaviour: @@ -17028,7 +17028,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: a5001818e381b2c4890a9f8b1d8c943e, type: 3} m_Name: m_EditorClassIdentifier: - view: {fileID: 0} + view: {fileID: 336428456} filter: 2 --- !u!114 &1484410839 MonoBehaviour: diff --git a/Assets/Scripts/Shop/View/ShopView.cs b/Assets/Scripts/Shop/View/ShopView.cs index 02ee2d7..2dca01a 100644 --- a/Assets/Scripts/Shop/View/ShopView.cs +++ b/Assets/Scripts/Shop/View/ShopView.cs @@ -52,7 +52,6 @@ public abstract class ShopView : MonoBehaviour private void Start() { - RegisterMoneyObserver(); // Make sure if this thing's got a money component somewhere we register it as an observer for the inventory we're looking at } private void OnEnable() @@ -61,6 +60,7 @@ public abstract class ShopView : MonoBehaviour if (model == null) model = ownModel.Model; model.SetTradePartner(tradePartner.Inventory); PopulateItemIconView(); //Display items + RegisterMoneyObserver(); // Make sure if this thing's got a money component somewhere we register it as an observer for the inventory we're looking at } private void OnDisable()