float h = Input.GetAxis("Horizontal") ;//h range from -1 to 1

float v = Input.GetAxis("Vertical") ;//v range from -1 to 1

 

float h = Input.GetAxisRaw("Horizontal") ;//h is -1, 0, or 1

float v = Input.GetAxisRaw("Vertical") ;//v is -1, 0, or 1

 

相关文章:

  • 2021-12-29
  • 2021-11-14
  • 2021-11-14
  • 2021-07-02
  • 2021-06-27
  • 2021-12-03
  • 2021-12-25
  • 2021-09-18
猜你喜欢
  • 2022-01-04
  • 2022-12-23
  • 2021-09-24
  • 2021-04-16
  • 2022-12-23
  • 2021-06-01
  • 2021-08-09
相关资源
相似解决方案