From cbebc78af131d5cbee9d2f70af6f806a416a1684 Mon Sep 17 00:00:00 2001 From: hyperion51 Date: Fri, 12 Jun 2020 02:11:31 +0100 Subject: [PATCH] Property Panel Refresh Hotfix --- .idea/.idea.Aetheria-Economy/.idea/indexLayout.xml | 1 + Assets/Scripts/StrategyGameManager.cs | 1 + Assets/Scripts/UI/PropertiesPanel.cs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) 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();