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