diff --git a/.idea/.idea.Aetheria-Economy/.idea/indexLayout.xml b/.idea/.idea.Aetheria-Economy/.idea/indexLayout.xml index 237badd75..5df10e722 100644 --- a/.idea/.idea.Aetheria-Economy/.idea/indexLayout.xml +++ b/.idea/.idea.Aetheria-Economy/.idea/indexLayout.xml @@ -20,6 +20,7 @@ Library Logs Server + Temp obj diff --git a/Assets/Scripts/StrategyGameManager.cs b/Assets/Scripts/StrategyGameManager.cs index 73d6dabfa..b3ec81b2e 100644 --- a/Assets/Scripts/StrategyGameManager.cs +++ b/Assets/Scripts/StrategyGameManager.cs @@ -305,6 +305,7 @@ public class StrategyGameManager : MonoBehaviour if (_currentTab == ColonyTabButton) { PropertiesPanel.Clear(); + PropertiesPanel.RemoveListener(); ColonyTab.Open(_selectedColony); } }; diff --git a/Assets/Scripts/UI/PropertiesPanel.cs b/Assets/Scripts/UI/PropertiesPanel.cs index b8fc0bd53..aa117ad56 100644 --- a/Assets/Scripts/UI/PropertiesPanel.cs +++ b/Assets/Scripts/UI/PropertiesPanel.cs @@ -63,7 +63,7 @@ public class PropertiesPanel : MonoBehaviour public void Clear() { - RemoveListener(); + //RemoveListener(); foreach(var property in Properties) Destroy(property); Properties.Clear();