Hello, I have a problem with my script and I cannot find a solution. If someone could take time to find the Error that would be great.
Actually there are two errors:
- Mathf.Abs accepts parameter of type int or float, and not Vector3 (which is returned from InverseTransformDirection)
- InverseTransformDirection accepts a parameter of type Vector3 or three parameters of type float, while you’re passing a single float
Add an additional closing ) after .z