private void Start(){
Debug.Log(FindDegree(0, 1));
}
public static float FindDegree(int x, int y){
float value = (float)((Mathf.Atan2(x, y) / Math.PI) * 180f);
if(value < 0) value += 360f;
return value;
}
If you want to use this from transform positions, then vector3.angle is what you are looking for. As you have to know what is forward to calculate it, i believe there even a ready example if you google.