public void Showon(string name) { if (!downfunction.returnactivebuton() || downfunction.CheckActiveButton(name)) { this.Selected = !Selected; ButtonElement _but = this.GetComponent <ButtonElement>(); downfunction.ChangeStatusButton(_but); } }