basically the last line is giving me problems which is :
public static float ClampAngle (float angle, float min, float max)
code below :
public static float ClampAngle (float angle, float min, float max)
{
if (angle < -360F)
angle += 360F;
if (angle > 360F)
angle -= 360F;
return Mathf.Clamp (angle, min, max);
}