I’m trying to make an indicator that rotates around the player and points an other object in 2D game.
So far I have made orbiting around the player, but can’t figure out how to make it point the other object.
The picture shows, what I want to make.

The code:
public Transform player;
public Transform target;
void Orbit()
{
transform.position = player.position + (transform.position - player.position).normalized * orbitDistance;
transform.RotateAround(player.position, Vector3.forward, 0);
}