Changes

Jump to navigation Jump to search
Line 92: Line 92:     
== Note on threading ==
 
== Note on threading ==
You should stick to the ModBehaviour's Update method, rather than trying to write your own update loop with threads or timers, as you cannot interact with Unity's system from other threads and you will most likely end up causing race conditions when interacting with the game's systems. You can use Unity's Time class to keep track of elapsed time between frames.
+
You should stick to the '''ModBehaviour''''s Update method, rather than trying to write your own update loop with threads or timers, as you cannot interact with Unity's system from other threads and you will most likely end up causing race conditions when interacting with the game's systems. You can use Unity's '''Time''' class to keep track of elapsed time between frames.
    
== Saving and loading data ==
 
== Saving and loading data ==

Navigation menu