Vector3 dir = GameObject1.position - GameObject2.position; float angle = Mathf.Atan2(dir.y, dir.x) * Mathf.Rad2Deg;