Check out example codes for "get angle between two vectors unity". It will help you in understanding the concepts better.

Code Example 1

Vector3 targetDir = target.position - transform.position;
float angle = Vector3.Angle(targetDir, transform.forward);

Learn ReactJs, React Native from akashmittal.com