Rotates a 2d Game Object on it's z axis so its forward vector points at a Target.
The GameObject to rotate.
The GameObject to Look At.
Set the GameObject starting offset. In degrees. 0 if your object is facing right, 180 if facing left etc...
Draw a debug line from the GameObject to the Target.
Debug Line Color
Color to use for the debug line.
Repeat every frame.