How to adjust direction towards target?

I want to a fire system for fighting enemies. I want to that missile pursue target’s movements.How can I it?

Transform.LookAt() will align the +Z axis of a transform towards where you want.

You can also do it in your own code with Mathf.Atan2():

Thanks sir.I will try it