unity look away from target code example
Example 1: Unity C# make object face away
transform.LookAt(2 * transform.position - new Vector3(Target.position))
Example 2: unity look at target
transform.LookAt(target.transform.position);
transform.LookAt(2 * transform.position - new Vector3(Target.position))
transform.LookAt(target.transform.position);