void ClickButton() { activeButton.onClick(); //update button state hit.transform.gameObject.GetComponent <Button>().onClick.Invoke(); //invoke the button component }
void ClickButton() { active_button.onClick(); hit.transform.gameObject.GetComponent <Button>().onClick.Invoke(); }