public void OnPress(bool _press) { if (_press) { WindowsManager.SetDepthTop(this.gameObject); } }
public void OnEnable() { WindowsManager.SetDepthTop(this.gameObject); background.GetComponent <UIPanel>().depth = gameObject.GetComponent <UIPanel>().depth; background.SetActive(true); }