Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 16874

Coroutine help

$
0
0

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 …


Viewing all articles
Browse latest Browse all 16874

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>