public void AutoOnClick(GameObject game)
{
ExecuteEvents.Execute(game, new PointerEventData(EventSystem.current),
ExecuteEvents.pointerClickHandler);
}
模拟鼠标点击功能,把挂有Button组建的gameObject 传进去,然后调用就行