Ejemplo n.º 1
0
 /// <summary>
 /// Gets the difference between the current angle and another angle.
 /// </summary>
 /// <param name="otherDirection">The direction to compare against.</param>
 private float GetAngleDifference(Vector2 otherDirection)
 {
     return(Vector3.Angle(VectorUtil.GetDirection2D(transform.forward), otherDirection));
 }