假定物体初始水平
private float GetAngle(Vector3 startPos, Vector3 endPos)
{
Vector3 dir = endPos - startPos;
float angle = Vector3.Angle(Vector3.right, dir
假定物体初始水平
private float GetAngle(Vector3 startPos, Vector3 endPos)
{
Vector3 dir = endPos - startPos;
float angle = Vector3.Angle(Vector3.right, dir