public Transform A;
void Update ()
{
float d= Vector3.Dot(transform.forward,A.position-transform.position);
Vector3 a = Vector3.Cross(transform.forward,A.position-transform.position);
if (d>=0&&a.y>0)
{
print("右上");
}
if (d>=0&&a.y<0)
{
print("左上");
}
if (d<0&&a.y>0)
{
print("右下");
}
if (d<0&&a.y<0)
{
print("左下");
}
}
public Transform A;
void Update () {
if (Vector3.Distance(transform.position, A.position) &