Version: 2017.3

Mathf.DeltaAngle

Switch to Manual
public static float DeltaAngle (float current, float target);

Description

Расчитывает наименьшую по модулю разницу между двумя заданными углами.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { Debug.Log(Mathf.DeltaAngle(1080, 90)); } }