I'm trying to make operational turn signals/hazards for a vehicle I'm making. I'd like to use coroutines for this, but I don't seem to have a very good understanding of how coroutines work. I'm hoping someone can 1. help me get these turn signals working and 2 (and more importantly) help me gain a better understanding of coroutines. I've posted my code below. These need to be fully operational just like a real vehicle. I hit a button, they stay on until either I hit the button again, or until the steering goes …
↧