I have been following a Udemy guide to Unity: https://www.udemy.com/become-a-game-designer/
It has its problems with being up to date, but I have been able to solve most of them until now. First off the rotation speed doesn’t change even if I change it from 20.0f to 100.0f.
Here’s the code:
Fixed code:
The other problem is with sound. It gives me an error saying this:
Assets/Scripts/TriggerEvent.cs(18,10): error CS1061: Type UnityEngine.Component' does not contain a definition for
PlayOneShot’ and no extension method PlayOneShot' of type
UnityEngine.Component’ could be found. Are you missing an assembly reference?
Here’s the code for that:
Fixed code:
I’m pretty new to Unity and I don’t know how to solve this. Thanks in advance.