示例#1
0
 private void Update()
 {
     mvnt.MoveAlongX(Input.GetAxis("P1X") * Distance * Time.deltaTime);
     mvnt.MoveAlongY(Input.GetAxis("JumpP1") * Distance * Time.deltaTime);
     if (Input.GetKeyDown(KeyCode.Space))
     {
         mvnt.SmoothGridMove(Vector2.right, Distance, false);
     }
 }