start()添加监听
button1.onClick.AddListener(delegate() {
this.OnClick(button1);
});
button2.onClick.AddListener(delegate() {
this.OnClick(button2);
});
新建方法
private void OnClick(Button button) {
switch (button.name)
{
}
}