public bool ActivePanel(Enums.Panels name) { return(panels.First(p => p.name == name).panel.activeSelf); }
public void OpenPanel(Enums.Panels name) { ClouseAllPanels(); panels.First(p => p.name == name).panel.SetActive(true); }