1.键盘输入:
//获取上下左右方向(h<0向左; h>0向右; v<0向下; v>0向上): float h = Input.GetAxis("Horizontal"); float v = Input.GetAxis("Vertical");