use SetPanelActive instead of manually setting gameobject active

This commit is contained in:
Sinai 2022-03-13 02:08:46 +11:00
parent 647b0d353d
commit 48e688cb75

View File

@ -39,7 +39,7 @@ namespace UnityExplorer.Inspectors.MouseInspectors
LastHitObjects.Clear();
LastHitObjects.AddRange(currentHitObjects);
var panel = UIManager.GetPanel<UiInspectorResultsPanel>(UIManager.Panels.UIInspectorResults);
panel.SetActive(true);
UIManager.SetPanelActive(panel, true);
panel.ShowResults();
}