public void ReturnPanel(DataLoader panel) { panel.EnablePanel(false); if (panel.GetComponent <GameLoader>()) { gamePanelPool.Add(panel.gameObject); } else { devPanelPool.Add(panel.gameObject); } }