//------------------------------------------------------------------------- // Public Interface //------------------------------------------------------------------------- /// <summary> /// Recalculates the rotation of the guide based on the position of the /// player and the mouse. /// </summary> public void RotateGuide() { Vector2 direction = player.GetMouseDirection(); float angleDeg = Mathf.Rad2Deg * Mathf.Atan2(direction.y, direction.x); transform.rotation = Quaternion.Euler(0, 0, angleDeg); }