Question by
lukas_balaz · Jul 04, 2016 at 09:15 PM ·
startorderawake
Execution order
Hello
When my game starts, these 3 things happen:
Map script reads data about the map from a file and creates an array of prefab instances
MapGenerator script instantiates every tile of the map and calculates its position
After the map is generated, all tiles change their sprites based on sprites around them.
How to make sure these things happen in correct order ? And should they be in Awake or Start function ?
Comment