求教,2d角色八方向移动没问题,但停住后朝向没法识别到对角using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerMovement : MonoBehaviour { public float speed; private Rigidbody2D rg; private Animator animator; private float inputX, inputY; private float stopX, stopY; //Start is called before the first frame update void Start() { rg = GetComponent<Rigidbody2D>(); animator = GetComponent<Animator>(); } // Update is called once per frame void Update() { inputX = Input.GetAxis("Horizontal"); inputY = Input.GetAxis("Vertical"); Vector2 input = new Vector2(inputX, inputY).normalize