Check out example codes for "Unity C# make object face away". It will help you in understanding the concepts better.

Code Example 1

transform.LookAt(2 * transform.position - new Vector3(Target.position))

Learn ReactJs, React Native from akashmittal.com