public GameObject target; Vector3 vector = target.transform.position - transform.position; transform.rotation = Quaternion.LookRotation(vector).normalized;
public Transform target transform.LookAt(target);