Im trying to get a directional vector from an euler angle. But im not getting how to do it. This is what i got so far.
escapeAngle += 90;
var radians = escapeAngle * (Mathf.PI / 180);
var escapeAngleAsDirectionVector = new Vector2 ();
escapeAngleAsDirectionVector.x = Mathf.Cos (radians);
escapeAngleAsDirectionVector.y = Mathf.Sin (radians);
escapeAngleAsDirectionVector = transform.TransformPoint (escapeAngleAsDirectionVector);