if (Input.GetKeyDown(KeyCode.A)){
 Debug.Log("您按下了A键");
}

if (Input.GetKeyUp(KeyCode.A))
{
            Debug.Log("您抬起了A键");
}

相关文章:

  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
  • 2021-12-03
  • 2022-01-17
猜你喜欢
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2021-12-03
相关资源
相似解决方案