コード例 #1
0
ファイル: AIControl.cs プロジェクト: sjoplin/Bardmages
 /// <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));
 }