Quantcast
Channel: Answers for "coroutines : trouble editing and accessing the same public variable"
Viewing all articles
Browse latest Browse all 8

Answer by Rocket Alien

$
0
0
For simulation, you probably want to look into putting your logic into Update() or FixedUpdate() functions and using Time.deltaTime or Time.fixedDeltaTime for computing incremental updates to your objects. Co-routines could probably work, but what's the reason why you're trying to use coroutines? Some code would also help identify the problem you're having with coroutines, pseudo code would not help if you're having a specific issue and not seeing your coroutine fire.

Viewing all articles
Browse latest Browse all 8

Trending Articles



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