…to torture all of earth’s unclaimed souls by forcing them to work with coroutines.
Just spent the last…oh idk…3 hours, trying to simply PAUSE a script for a specific amount of time.
I tried every combination of commands before learning you can’t pause anything in Update. I then tried executing a Coroutine only to learn there’s some specific syntax you need to use that only the Unity developers are aware of. Then I find myself reading about IEnumerators on some obscure website that’s probably giving me spyware.
Finally I gave up and moved everything outside of Update to Start, but that wouldn’t pause the script. Now I’m moving things outside of start and the compiler is giving me syntax errors.
I always find it best to step away from the computer when it’s giving me a hard time (sometimes that’s easier said then done, however…).
Like aaro4130 said, maybe it’s best to learn the basics of scripting first before diving into deeper concepts. Step back, take a couple days to watch tutorials/practice basic scripting and you may find you won’t get as frustrated in the future with such tasks. For example, I’m not 100% certain, but after programming for 10 years I believe the task you’re attempting to accomplish could be done with a simple ‘if’ condition. Learning basic scripting before diving into Unity projects is the way to remedy this frustration.