动态添加按钮并获取当前点击按钮名字事件
//动态添加按钮事件
Button temp = Item.GetComponent<Button>();
temp.onClick.AddListener(delegate () { this.Btn_SelectFileSection_Click(temp.gameObject); });
public void Btn_SelectFileSection_Click(GameObject btn)
{
BtnName = btn.name;
WHKJDebug.Log(btn.name);
}