public KeyCode _key; 可以得到所以的Key在面板中选择
if (Input.GetKeyDown(_key))
{
//当按下Key,button按钮被点击
_button.onClick.Invoke();
_animator.SetTrigger("IsDown");
Instantiate(SFX, point.position, point.rotation);
}
原文:https://www.cnblogs.com/wayne1984/p/13615130.html